require_dependency "phcpresspro/application_controller" module Phcpresspro class Frontend::ArticlesController < ApplicationController # Security & Filters layout '/layouts/phcpresspro/frontend.html.erb' before_action :set_frontend_article, only: [:show] # Article Index def index @article_index = Articles::Post.all end # Single Article Post def show @article_single = Articles::Post.find(params[:id]) end end end