about summary refs log tree commit diff stats
path: root/app/controllers/admin
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/blogs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/blogs_controller.rb b/app/controllers/admin/blogs_controller.rb index e79dd81..f17bce2 100644 --- a/app/controllers/admin/blogs_controller.rb +++ b/app/controllers/admin/blogs_controller.rb
@@ -44,7 +44,7 @@ class Admin::BlogsController < Admin::AdminController
44 def update 44 def update
45 @blog = Blog.find(params[:id]) 45 @blog = Blog.find(params[:id])
46 46
47 if @blog.update_attributes(blog_params) 47 if @blog.update(blog_params)
48 flash.notice = "Blog updated successfully!" 48 flash.notice = "Blog updated successfully!"
49 else 49 else
50 flash.alert = "Error updating blog." 50 flash.alert = "Error updating blog."