I\'m new to Devise and have it working fine by using an email address as the authentication key. However, I have a use case which requires a username instead and I can\'t s
bundle exec rake db:migrate
rails generate devise:views
Change the Devise/views as you want (replacing email field to username field)
Restart the webserver
Hope it helps!
In your config/initializers/devise.rb uncomment config.authentication_keys = [ :email]
and change it to config.authentication_keys = [ :username ]
Update:
Your form's incorrect.
Change f.email_field
to f.text_field