Forum: Ruby on Rails how to use routes.rb to shorten url??

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
paul (Guest)
on 2007-01-06 00:39
I have a url


is it possible to have this instead that will load the above?

(without public)

paul (Guest)
on 2007-01-06 01:05
ok ive worked this out

map.connect 'my/:id', :controller => 'public', :action => 'my'

but i it now possible to forward any one that types in public to be sent
to the /my/:id one?
This topic is locked and can not be replied to.