Quick question I''m hoping you guys might know...
I''m working at re-factoring my application to be RESTful and
I''m
running into a lot of problems as I try to totally understand this
whole REST thing... my question here however is with the routes.rb
file... for example I have Clients, who have Locations... so would
the code in the routes.rb file be
map.resources :clients, :has_many => [ :locations ]
or I''ve seen this as well..
map.resources :clients do |clients|
clients.resources :locations
end
Which of these is the correct Rails 2.0 way of doing it?
Thanks in advanced.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---