diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-14 10:15:24 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-14 10:15:24 -0400 |
commit | 0aace2986a9a7a6d4c84a9ba6819d3df7821e267 (patch) | |
tree | 450acd91cbd522d47577233ca28725ede6697bb2 /app/controllers/admin/blogs_controller.rb | |
parent | 07ac5db98c8884e0de81fc6c0ab873854a852ca5 (diff) | |
download | thoughts-0aace2986a9a7a6d4c84a9ba6819d3df7821e267.tar.gz thoughts-0aace2986a9a7a6d4c84a9ba6819d3df7821e267.tar.bz2 thoughts-0aace2986a9a7a6d4c84a9ba6819d3df7821e267.zip |
Blogs have an author now
Diffstat (limited to 'app/controllers/admin/blogs_controller.rb')
-rw-r--r-- | app/controllers/admin/blogs_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/admin/blogs_controller.rb b/app/controllers/admin/blogs_controller.rb index 8e288a8..f0ce519 100644 --- a/app/controllers/admin/blogs_controller.rb +++ b/app/controllers/admin/blogs_controller.rb | |||
@@ -25,6 +25,7 @@ class Admin::BlogsController < Admin::AdminController | |||
25 | 25 | ||
26 | def create | 26 | def create |
27 | @blog = Blog.new(blog_params) | 27 | @blog = Blog.new(blog_params) |
28 | @blog.user = current_user | ||
28 | 29 | ||
29 | if @blog.save | 30 | if @blog.save |
30 | flash.notice = "Blog created successfully!" | 31 | flash.notice = "Blog created successfully!" |