what is the main use of 1)map.resources 2)nested resources 3)if we use only map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' in routes.rb ,then what is the drawback of that ? can any one ? -- 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 -~----------~----~----~----~------~----~------~--~---
On 8 Oct 2008, at 14:56, Pokkai Dokkai wrote:> > what is the main use of > 1)map.resources > 2)nested resources > 3)if we use only > map.connect '':controller/:action/:id'' > map.connect '':controller/:action/:id.:format'' > in routes.rb ,then what is the drawback of that ? >http://guides.rails.info/routing/routing_outside_in.html#_restful_routing_the_rails_default> can any one ? > -- > 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 8 Oct 2008, at 14:56, Pokkai Dokkai wrote: > http://guides.rails.info/routing/routing_outside_in.html#_restful_routing_the_rails_defaultnice explaination thanks Cheung. -- 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 8 Oct 2008, at 14:56, Pokkai Dokkai wrote: > >> >> what is the main use of > http://guides.rails.info/routing/routing_outside_in.html#_restful_routing_the_rails_defaulti have confused a little about perfomance issue while using nested routing if i create a nested routes like this #---------------in routes.rb----------------------------------------- map.resources :countries do |country| country.resources :states do |state| state.resources :cities do |city| city.resources :streets, :has_many =>:wards end end end #-------------------------------------------------------- will it affect performance ? because these routes are looking like a nested loop -- 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 -~----------~----~----~----~------~----~------~--~---