Displaying 1 result from an estimated 1 matches for "inner_stuff".
Did you mean:
enter_stuff
2008 Jun 30
0
Nested resources routes
Hi!
I''ve got a quick question in routing.
Is there any difference between
map.resources :stuff, :has_many => :inner_stuff
AND
map.resources :stuff do |stuff|
stuff.resources :inner_stuff
end
?
Both calls seem to do the same thing - they just register the
:inner_stuff as a resource inside :stuff resource (in terms of routes).
Do they?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~--...