diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-17 15:05:36 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-17 15:05:36 -0400 |
commit | 95e7c215df89608a5b10bebb87968c9a713bbf3d (patch) | |
tree | b21785e6483b0286a812dda44082bc735264fb27 /app/controllers/admin/blogs_controller.rb | |
parent | 8d039903f630db0b89f2df44a94f4e5c938bd7bf (diff) | |
download | thoughts-95e7c215df89608a5b10bebb87968c9a713bbf3d.tar.gz thoughts-95e7c215df89608a5b10bebb87968c9a713bbf3d.tar.bz2 thoughts-95e7c215df89608a5b10bebb87968c9a713bbf3d.zip |
Added uploading images to blog posts
Diffstat (limited to 'app/controllers/admin/blogs_controller.rb')
-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 f0ce519..35f3514 100644 --- a/app/controllers/admin/blogs_controller.rb +++ b/app/controllers/admin/blogs_controller.rb | |||
@@ -57,7 +57,7 @@ class Admin::BlogsController < Admin::AdminController | |||
57 | private | 57 | private |
58 | 58 | ||
59 | def blog_params | 59 | def blog_params |
60 | params.require(:blog).permit(:title, :body, :slug, :published, :published_at, :tag_list, records_attributes: [:description, :_destroy]) | 60 | params.require(:blog).permit(:title, :body, :slug, :published, :published_at, :tag_list, images: [], records_attributes: [:description, :_destroy]) |
61 | end | 61 | end |
62 | 62 | ||
63 | def set_section | 63 | def set_section |