Sha256: a9b03d75a96a6a1e800e3549218133f21a1d0c4ed28a5ec28f569264b6aa5554
Contents?: true
Size: 483 Bytes
Versions: 8
Compression:
Stored size: 483 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").friendly.find(params[:id]) end end end
Version data entries
8 entries across 8 versions & 1 rubygems