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