aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_controller_overview.md
diff options
context:
space:
mode:
authorZachary Scott <zachary@zacharyscott.net>2013-09-28 19:32:48 -0400
committerZachary Scott <zachary@zacharyscott.net>2013-09-28 19:32:48 -0400
commitac53d6e94287c63b5c105bc8a571c593864230c2 (patch)
tree4e00e2598ccc8d8bf2e54a569ec9f24c14dc9174 /guides/source/action_controller_overview.md
parent49f513c25415f94452af1bb8fe3f55f090a6d0f2 (diff)
downloadrails-ac53d6e94287c63b5c105bc8a571c593864230c2.tar.gz
rails-ac53d6e94287c63b5c105bc8a571c593864230c2.tar.bz2
rails-ac53d6e94287c63b5c105bc8a571c593864230c2.zip
Use ActiveRecord::Base#update! instead of #update_attributes!
Diffstat (limited to 'guides/source/action_controller_overview.md')
-rw-r--r--guides/source/action_controller_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index 8dfecd0190..cd4a1a0792 100644
--- a/guides/source/action_controller_overview.md
+++ b/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