Nested resources routes

Victor Bobrov
2008-06-30T06:24:27Z

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/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---