ich arbeite durch Michael Hartl des Rails-Tutorial und wenn ich meine Testsuite betreibe ich Fehler wie diese sehe:Deprecation Warnung in Rails 4 Anwendung (Hartl Tutorial)
DEPRECATION WARNING: You attempted to assign a value which is not explicitly
`true` or `false` to a boolean column. Currently this value casts to `false`.
This will change to match Ruby's semantics, and will cast to `true` in Rails
5. If you would like to maintain the current behavior, you should explicitly
handle the values you would like cast to `false`. (called from remember at
.../RoR_Tutorial/sample_app/app/models/user.rb:28)
DEPRECATION WARNING: You attempted to assign a value which is not explicitly
`true` or `false` to a boolean column. Currently this value casts to `false`.
This will change to match Ruby's semantics, and will cast to `true` in Rails
5. If you would like to maintain the current behavior, you should explicitly
handle the values you would like cast to `false`. (called from update at
...RoR_Tutorial/sample_app/app/controllers/users_controller.rb:40)
Es scheint, über die Anrufe, wütend zu sein zu update_attribute
wie folgt aus:
def remember
self.remember_token = User.new_token
update_attribute(:remember_digest, User.digest(remember_token))
end
oder
def update
@user = User.find(params[:id])
if @user.update_attributes(user_params)
flash[:success] = 'Profile Updated'
redirect_to @user
else
render 'edit'
end
end
... kann jemand klären, was diese Warnung mir zu sagen versucht?