From 5f860c66d300654934848aee1abe8e5c0d41836e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 11 Oct 2023 16:25:37 -0400 Subject: Added blog archive The path to blog posts is now "blog" instead of "says", btw. --- app/controllers/admin/blogs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/admin') diff --git a/app/controllers/admin/blogs_controller.rb b/app/controllers/admin/blogs_controller.rb index ea2c46c..c6d0168 100644 --- a/app/controllers/admin/blogs_controller.rb +++ b/app/controllers/admin/blogs_controller.rb @@ -13,7 +13,7 @@ class Admin::BlogsController < Admin::AdminController @blog = Blog.find(params[:id]) if @blog.published - redirect_to blog_url(@blog.slug) + redirect_to blog_post_url(@blog.slug) else render layout: "application" end -- cgit 1.4.1