about summary refs log tree commit diff stats
path: root/app/controllers/admin/links_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/links_controller.rb')
-rw-r--r--app/controllers/admin/links_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/links_controller.rb b/app/controllers/admin/links_controller.rb index bda0d49..54f245a 100644 --- a/app/controllers/admin/links_controller.rb +++ b/app/controllers/admin/links_controller.rb
@@ -30,7 +30,7 @@ class Admin::LinksController < Admin::AdminController
30 def update 30 def update
31 @link = Link.find(params[:id]) 31 @link = Link.find(params[:id])
32 32
33 if @link.update_attributes(link_params) 33 if @link.update(link_params)
34 flash.notice = "Link updated successfully!" 34 flash.notice = "Link updated successfully!"
35 else 35 else
36 flash.alert = "Error updating link." 36 flash.alert = "Error updating link."