Skip to content
Browse files

Use ActiveRecord::Base#update! instead of #update_attributes!

  • Loading branch information...
1 parent 49f513c commit ac53d6e94287c63b5c105bc8a571c593864230c2 @zzak zzak committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/action_controller_overview.md
View
2 guides/source/action_controller_overview.md
@@ -209,7 +209,7 @@ class PeopleController < ActionController::Base
# Request reply.
def update
person = current_account.people.find(params[:id])
- person.update_attributes!(person_params)
+ person.update!(person_params)
redirect_to person
end

0 comments on commit ac53d6e

Please sign in to comment.
Something went wrong with that request. Please try again.