Sha256: de4fbae691788c3542ab5ac4c29dbebf2a9e90904f7f3b579ae6818d7822382d

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

require_dependency "phcpresspro/application_controller"

module Phcpresspro
	class Frontend::ArticlesController < ApplicationController

		# Security & Filters
		layout '/layouts/phcpresspro/frontend.html.erb'
		before_action :set_frontend_index, only: [:show, :edit, :update, :destroy]

		# Article Index
		def index
			@article_indicies = Articles::Post.all
		end
	
		# Single Article Post
		def show
			@article_index = Articles::Post.find(params[:id])
		end

		private

		# Common Callbacks
		def set_frontend_index
			@article_index = Articles::Post.find(params[:id])
		end

	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phcpresspro-5.7.6 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-5.7.5 app/controllers/phcpresspro/frontend/articles_controller.rb