app/controllers/phcpress/blog/posts_controller.rb in phcpress-0.3.1b vs app/controllers/phcpress/blog/posts_controller.rb in phcpress-0.4.1b
- old
+ new
@@ -4,19 +4,19 @@
# Code for Blog Posting
module Phcpress
class Blog::PostsController < ApplicationController
# Filters & Security
- before_action :set_blog_post, only: [:show, :edit, :update, :destroy]
+ before_action :set_blog_post, only: [:edit, :update, :destroy]
# Blog Post Index (/blog/posts)
def index
@blog_posts = Blog::Post.all
end
# Single Blog Post (/blog/posts/1)
- def show
- end
+ #def show
+ #end
# Create a New Blog Post (/blog/posts/new)
def new
@blog_post = Blog::Post.new
end