Sha256: 0c4b6c9067285c7cd14e69a3e6db5392e27f00a640d1b64c0affcde7e85f58c6
Contents?: true
Size: 490 Bytes
Versions: 8
Compression:
Stored size: 490 Bytes
Contents
require_dependency "phcpresspro/application_controller" module Phcpresspro class Blog::ArticlesController < ApplicationController # Security, Layouts & Action Filters layout 'phcpresspro/frontend' # Index for All Published Posts def index @phcpresspro_posts_index = Article::Post.where(pststatus: "published") end # Single Page for Published Post def show @phcpresspro_posts_single = Article::Post.friendly.find(params[:id]) end end end
Version data entries
8 entries across 8 versions & 1 rubygems