Top "Nested-resources" questions

In REST, nested resource is a web resource composing another.

form_for with nested resources

I have a two-part question about form_for and nested resources. Let's say I'm writing a blog engine and I …

ruby-on-rails form-for nested-resources
REST Complex/Composite/Nested Resources

I'm trying to wrap my head around the best way to address concepts in a REST based API. Flat resources …

api rest resources nested-resources
Rails - link_to, routes and nested resources

As my understanding on nested resources, on edge Rails, should not link_to 'User posts', @user.posts point to /users/:…

ruby-on-rails routes nested-resources
change the URL without changing the resource name

I'm building a website for a rabbit farmer (let's pretend). This man keeps a close eye on his rabbits, and …

ruby-on-rails-3 routing nested-resources
Rails Namespace vs. Nested Resource

Let's say my app has two models, Foo and Bar. Foo optionally belongs_to Bar. Right now I can look …

ruby-on-rails ruby-on-rails-3 namespaces routes nested-resources
Nested resources in Django REST Framework

I wish to implement my new API with a nested resource. Example: /api/users/:user_id/posts/ Will evaluate to …

python django rest django-rest-framework nested-resources
Getting Rails Nested Resources to Route to correct nested Controllers

In Rails 3.2.11, I have the following route definitions resources :foos do resources :bars resources :bangs, :controller => 'foos/bangs' end …

ruby-on-rails-3.2 rails-routing controllers nested-resources
How to use Link_to with nested resources

I am a totally newbie in Rails. I have created a web application, I can access through /posts/123/comments/ or /…

ruby-on-rails ruby ruby-on-rails-3 nested-resources
RESTful API routes design: nested vs. non-nested

My question is about the advantages of nesting resources when building URLs for API purposes. Consider the following two alternatives …

rest restful-url api-design nested-resources nested-routes
RSpec, stubbing nested resource methods

I've got two models: class Solution < ActiveRecord::Base belongs_to :owner, :class_name => "User", :foreign_key => :user_…

ruby-on-rails unit-testing rspec bdd nested-resources