diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 16:39:45 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 16:39:45 -0400 |
commit | 292c2e4a031360e5b58385f4b6b7f3e47a8ca988 (patch) | |
tree | bbbbf7d61753c3f1597b185aed4ad5d4d7600775 /app/controllers/admin | |
parent | 5f860c66d300654934848aee1abe8e5c0d41836e (diff) | |
download | thoughts-292c2e4a031360e5b58385f4b6b7f3e47a8ca988.tar.gz thoughts-292c2e4a031360e5b58385f4b6b7f3e47a8ca988.tar.bz2 thoughts-292c2e4a031360e5b58385f4b6b7f3e47a8ca988.zip |
Fixed broken blog post urls
Diffstat (limited to 'app/controllers/admin')
-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 c6d0168..8e288a8 100644 --- a/app/controllers/admin/blogs_controller.rb +++ b/app/controllers/admin/blogs_controller.rb | |||
@@ -13,7 +13,7 @@ class Admin::BlogsController < Admin::AdminController | |||
13 | @blog = Blog.find(params[:id]) | 13 | @blog = Blog.find(params[:id]) |
14 | 14 | ||
15 | if @blog.published | 15 | if @blog.published |
16 | redirect_to blog_post_url(@blog.slug) | 16 | redirect_to @blog |
17 | else | 17 | else |
18 | render layout: "application" | 18 | render layout: "application" |
19 | end | 19 | end |