Wildcard URL redirect via Rails Routes?


#1

Hey all,

I wanted to know if I can (and if it’s a good idea) to redirect old
routes to other controllers/actions. In a previous version we had
some routes like so “/public/username/some/other/variables”.

What would I need to do in my routes.rb file to make “/public/username/
*” redirect to “/username” or even a specific controller/action?

Thanks in advance.