1
current_user.update_attributes(params[:user])
此行current_user成爲零後。 如何它是怎麼回事?update_attributes導致註銷
PARAMS包含:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LH0UlvccEI98ViHuk.....", "user"=>{"first_name"=>"test", "last_name"=>"test", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "admin"=>"1"}, "commit"=>"Save"}