ruby-on-rails – Devise:允许用户注册为“UsErNaMe”,但用“username”登录
以大多数网站工作的方式,我在数据库中存储“UsErNaMe”,但让用户使用“用户名”登录. 这是一个相当明显和必要的功能,很多人似乎已经问过,但是我仍然绊倒的解决方案似乎与Devise自己的文档无关. 例如,考虑这个博文:http://anti-pattern.com/2011/5/16/case-insensitive-keys-with-devise […]you’ve probably ru