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