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 ?
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 ?
On 8 Oct 2008, at 14:56, Pokkai D. 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 ?
Frederick C. wrote:
On 8 Oct 2008, at 14:56, Pokkai D. wrote:
rails.info
nice explaination
thanks Cheung.
Frederick C. wrote:
On 8 Oct 2008, at 14:56, Pokkai D. wrote:
what is the main use of
rails.info
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs