diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 12:12:25 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 12:12:25 -0400 |
commit | e09aa803cf3905c82c29dbaa9101cc4a4639cc5a (patch) | |
tree | 507ffb887044bfbcd2fd5cf89f8fe587654d01ba /app/controllers | |
parent | 3a628945ade35f3ba351ba90e271608520753174 (diff) | |
download | thoughts-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.rb | 2 |
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." |