Forum: Ruby on Rails use of custom routings

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2008-10-08 15:56
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  ?
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-10-08 16:01
(Received via mailing list)
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_i...
1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2008-10-13 07:02
Frederick Cheung wrote:
> On 8 Oct 2008, at 14:56, Pokkai Dokkai wrote:
> 
http://guides.rails.info/routing/routing_outside_i...

nice explaination
thanks Cheung.
1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2008-10-13 07:20
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_i...

i 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
This topic is locked and can not be replied to.