Saturday, August 13, 2011

[Rails] Rails 3 - small route question

Hi,

resources :car do
resources :wheel
resources :engine do
resources :piston do
......

so a normal url would be localhost:3000/cars/engines/piston...
I want to rename these objects to something similar localhost:3000/c/e/
p
Basically ONLY in the web url displayed in browser I want these words
car to be replaced with c and wheel with w and engine with e ...
Is this possible in Rails 3?

--
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


Real Estate