0

I want my login URL to be case insensitive in my Rails application. e.g if the user types in 'User_Login' it should redirect to 'user_login'. I m using rails 3.1. Any help would be appreciated.

Thanks

  • This might be useful..: http://stackoverflow.com/questions/2291907/rails-routes-how-to-make-them-case-insensitive – Nobita Aug 06 '12 at 11:24

1 Answers1

0

Had the same problem a long time ago. Have a look at my solution here:

http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/

/ Carsten

Carsten Gehling
  • 1,218
  • 1
  • 13
  • 31