[Rails] Help with routing
From this url: http://localhost:3000/cities/new-york/deals/title-of-deal
how can i change it to http://localhost:3000/new-york/foobar ? How do
i configure this in my route?
Should i be looking at named routes for this?
Anyone experience with setting up routes like this. Please advise.
Also, does this type of routing still follow the RESTful convention?
Im also using http://norman.github.com/friendly_id/ to display a
different column, rather than the id. For example:
http://localhost:3000/cities/new-york instead of http://localhost:3000/cities/1
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home