How to use routes.rb to shorten url?


#1

I have a url

localhost:3000/public/my/23

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

localhost:3000/my/23
(without public)

thanks


#2

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?