Files
rails/actionpack/lib/action_controller
Pratik Naik 83c6ba1889 Add support for shallow nesting of routes. [#838 state:resolved]
Adds :shallow option to resource route definition. If true, paths for nested
resources which reference a specific member (ie. those with an :id parameter)
will not use the parent path prefix or name prefix.

Example :

map.resources :users, :shallow => true do |user|
  user.resources :posts
end

* GET /users/1/posts (maps to PostsController#index action as usual)
  named route "user_posts" is added as usual.

* GET /posts/2 (maps to PostsController#show action as if it were not nested)
  Additionally, named route "post" is added too.
2008-08-30 15:20:20 +01:00
..
2008-07-16 13:01:23 +01:00
2007-12-05 18:54:41 +00:00
2008-08-29 13:43:30 +01:00
2008-05-09 10:40:50 +01:00
2008-08-29 13:43:30 +01:00
2008-07-16 13:01:23 +01:00
2008-05-25 12:29:00 +01:00
2008-07-31 16:36:23 -05:00
2008-08-21 21:03:33 -05:00
2008-07-28 13:38:20 -05:00
2008-07-16 13:01:23 +01:00
2008-07-28 12:33:24 +01:00
2008-07-28 12:33:24 +01:00