From 49b11f2864f75bcfb8d0d01439939ed68aa90b8f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 2 Jul 2018 18:03:37 -0400 Subject: Collapsed Entry -> Blog single-table inheritance to Blog --- app/controllers/blogs_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/controllers/blogs_controller.rb (limited to 'app/controllers/blogs_controller.rb') diff --git a/app/controllers/blogs_controller.rb b/app/controllers/blogs_controller.rb new file mode 100644 index 0000000..5e72601 --- /dev/null +++ b/app/controllers/blogs_controller.rb @@ -0,0 +1,7 @@ +class BlogsController < ApplicationController + + def show + @blog = Blog.find_by_slug(params[:slug]) + end + +end -- cgit 1.4.1