Sha256: 3a497fbe7bd89cf1ed92285384d4aefc47f25301ee512521e32a33e1f368800a
Contents?: true
Size: 480 Bytes
Versions: 20
Compression:
Stored size: 480 Bytes
Contents
require_dependency "phcpresspro/application_controller" module Phcpresspro class Frontend::ArticleController < ApplicationController # Security & Filters layout '/layouts/phcpresspro/frontend.html.erb' # Article Index def index @articles_index = Article::Post.where(pststatus: "published") end # Single Article Post def show @articles_single = Article::Post.where(pststatus: "published").friendly.find(params[:id]) end end end
Version data entries
20 entries across 20 versions & 1 rubygems