From ac53d6e94287c63b5c105bc8a571c593864230c2 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Sat, 28 Sep 2013 19:32:48 -0400 Subject: Use ActiveRecord::Base#update! instead of #update_attributes! --- guides/source/action_controller_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') 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 -- cgit v1.2.3