Sha256: 1c725a5353cc235470eb361e07883465a9d2f0dcb2338d9d1db6095c728ff31c
Contents?: true
Size: 565 Bytes
Versions: 5
Compression:
Stored size: 565 Bytes
Contents
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
Version data entries
5 entries across 5 versions & 1 rubygems