require_dependency "phcpresspro/application_controller" module Phcpresspro class Website::PagesController < ApplicationController # Security, Layouts & Action Filters before_action :set_website_page, only: [:show] layout 'phcpresspro/frontend' # 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