current_user.update_attributes(params[:user])
在这一行之后 current_user 变为 nil。它是如何发生的?
参数包含:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LH0UlvccEI98ViHuk.....", "user"=>{"first_name"=>"test", "last_name"=>"test", "email"=>"test@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "admin"=>"1"}, "commit"=>"Save"}