|
[Rails] Re: Trouble understanding Routes: msg#03292RubyonRailsTalk
Sijo, That is not necessarily good advice. You don't always need (or want) these default routes. Even the comments produced automatically when creating a new Rails app tell you this: # Install the default routes as the lowest priority. # ...You should consider removing them or commenting them out if you're using named routes and resources. On Jul 31, 5:24 am, Sijo Kg <rails-mailing-l...@xxxxxxxxxxxxx> wrote: > Hi brianp > > Your default routes should have the least priority Means > > map.connect ':controller/:action/:id' > map.connect ':controller/:action/:id.:format' > > These should be at the very bottom of routes.rb > > Sijo > -- > Posted viahttp://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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |