On Tuesday, July 19, 2016 at 9:42:53 AM UTC+1, Vaclav Prokop wrote:
>
> Hi,
> I am excersising RailsTutorial and do not understand why I cannot read 
> user's activation_digest although I defined attr_reader for it as such:
>
> attr_reader :activation_digest
>
>
This replaces the active record provided method with one that returns 
@activation_digest. The attributes from your database table aren't stored 
in individual instance variables, so this accessor doesn't work. You don't 
need to add accessors for columns in the database.

Fred 

>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/e721a0a0-6f32-4fb0-97a2-30a32f4cac7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to