require_dependency "phcpresspro/application_controller" module Phcpresspro class Website::PagesController < ApplicationController # Security & Action Filters before_action :set_website_page, only: [:show] # Index for All Published Posts def post_index @phcpresspro_posts_index = Article::Post.where(pststatus: "published") end # Single Page for Published Post def post_single @phcpresspro_posts_single = Article::Post.friendly.find(params[:id]) end end end