about summary refs log tree commit diff stats
path: root/app/controllers
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 12:12:25 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 12:12:25 -0400
commite09aa803cf3905c82c29dbaa9101cc4a4639cc5a (patch)
tree507ffb887044bfbcd2fd5cf89f8fe587654d01ba /app/controllers
parent3a628945ade35f3ba351ba90e271608520753174 (diff)
downloadthoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.tar.gz
thoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.tar.bz2
thoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.zip
We're on Markdown now
Diffstat (limited to 'app/controllers')
-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."