Like the title says, I’m looking for the options for devises automatic class authenticate_user!, specifically, I want it to redirect_to to ‘/’ and not ‘/users/sign_in’
Like the title says, I’m looking for the options for devises automatic class authenticate_user!
Share
Do the following:
In config/initializers/devise.rb:
Create a new file called lib/custom_authentication_failure.rb:
And this to your config/application.rb: