Access to cookies using auth generaor?


#1

I’m using the auth generator and am trying to gain access to the @user
variable as indicated in the documentation. When I login everything
seems to work, I get a “Login successful.” message in the flash[:notice]
but I cannot get any information from @user from within a controller
after that. There is nothing in cookies[:user] or session[:user]
either. Where do I start to debug this?


#2

Todd S. wrote:

I’m using the auth generator and am trying to gain access to the @user
variable as indicated in the documentation. When I login everything
seems to work, I get a “Login successful.” message in the flash[:notice]
but I cannot get any information from @user from within a controller
after that. There is nothing in cookies[:user] or session[:user]
either. Where do I start to debug this?

I have the same problem.
In the documentation you should use @user.reload, but when I use that my
database table crashes…