Rails URL case sensitive

梦想的初衷 提交于 2019-12-25 05:06:07

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/11827233/rails-url-case-sensitive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!