"NoMethodError (undefined method `activation_digest=' for #User:0x00000003156938
about
For some reason I saw this error only in the production environment
user.rb
def activate
self.update_attribute(:activated, true)
self.update_attribute(:activated_at, Time.zone.now)
end
I forgot to add self.
Why was there no problem if it was local?
Recommended Posts