I cannot solve problem with accessing data from pass_expires field
(inside my User model)
I think I am forgot some obvious code...
https://gist.github.com/894436

So as recomended I moved update into after_save inside transition, I
use proper redirection, and I think I handle guest user.
The thing is that whenever and however I try to get pass_expires I got
missing method exception.
What is strange - current_user.role  - which I put for debug prints
'role' field with no problems.

So far I tried
 - simple by 'current_user.pass_expires'
 - by creating methods in user model that returns proper column
 - by  creating methods in users_helper.rb that returns proper column
Nothing worked.
I double checked database - field exists (is null everywhere)

Could you point out what am I doing wrong?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to