LoginSignup
0
0

More than 3 years have passed since last update.

【Rails チュートリアル】"NoMethodError (undefined method `activation_digest=' for #<User:0x00000003156938>

Posted at

"NoMethodError (undefined method `activation_digest=' for #User:0x00000003156938

について

何故か本番環境だけで、このエラーがみられた

user.rb

    def activate
      self.update_attribute(:activated,    true)
      self.update_attribute(:activated_at, Time.zone.now)
    end

とself.をつけ忘れてた

何故、ローカルだと問題なかったのか、、、

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0