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