require_dependency "phcpresspro/application_controller" module Phcpresspro class Frontend::ArticlesController < ApplicationController # Security & Filters layout '/layouts/phcpresspro/frontend.html.erb' # 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