How can I rename a Rails controller with a route?

routes, ruby-on-rails

Solution

If you use RESTful routes:

resources :another_name, :controller => "my_store"

Otherwise:

match "another_name" => "my_store"

Problem

I have a controller in a Rails 3 app named "my_store." I would like to be able to use this controller as is, except replacing "my_store" in all the URL's with another name. I do not want to rename the controller file, and all the references to it. Is there a clean way to do this with just a routing statement?

Original source