RailsCasts Pro episodes are now free!

Learn more or hide this

jonahbrown's Profile

GitHub User: jonahbrown

Comments by

Avatar

I keep getting

ruby
Couldn't find User with auth_token = ):

in my template I use:

ruby
<% if current_user %>
                      Logged in as <%= current_user.email %>.
                      <% end %>

in my application.rb it is defines

ruby
def current_user
    @current_user ||= User.find_by_auth_token!(cookies[:auth_token]) if cookies[:auth_token] 
  end

happens when a user is trying to reset the password.