Ruby on Rails Sunday, July 31, 2011

Uggh. There must be a hole in my tests:

def get_user_from_cookie
@current_user || begin
cookie_array = cookies.signed[:remember_token]

if cookie_array
@current_user = User.authenticate_with_salt(*cookie_arr)
return @current_user
return nil

end # || block

*cookie_arr should be *cookie_array. But my tests didn't throw an

Posted via

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment