how to use routes.rb to shorten url??

Yes, add this to your routes.rb

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

paul escreveu: