Sha256: 47c504e3e7dbfd8549de3c9166fb3f7e2ec0b7f32c4bcfc707246de75aa4d4f7
Contents?: true
Size: 474 Bytes
Versions: 6
Compression:
Stored size: 474 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
6 entries across 6 versions & 1 rubygems