-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cant log in - #<NoMethodError: undefined method `current_sign_in_at' for #<User:0x000055e053c79c58>> #1300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I solved this by installing version one of the gem as:
I run the following commands:
Note that you don't have to install |
Just got this error, too. Tried downgrading to '1.0.0' but no luck yet Update:
|
Are you sure? Check heartcombo/devise#4857 I removed that field and it worked for me so you might be using the trackable module |
@enriquemorenotent What devise version do you have? What devise modules do you have? |
Devise no longer includes Trackable in its model generator. If you need Trackable, generate a migration with the fields mentioned by @farverio. Otherwise, remove the |
remove trackable in your user.rb file, like this: class User < ActiveRecord::Base
# devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :validatable tested in rails 7.0.6, devise: 4.9.2 |
I can't seem to be able to sign in, even though creating users works without a problem.
I added the gems into my Gemfile:
I run the following commands:
This is my routes then:
If I try to login with wrong credentials, I get this message:
But if I try to login with the right credentials, I get this message:
I am using ruby 2.5.1 and rails 5.2.3
What is wrong??
The text was updated successfully, but these errors were encountered: