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