Sha256: e4574b1be5ff694544a762893b34b7da72ba0664fc651d331c4057a1f8daf0b7

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

require_dependency "phcpresspro/application_controller"

module Phcpresspro
	class Frontend::ArticlesController < ApplicationController

		# Security & Filters
		layout '/layouts/phcpresspro/frontend.html.erb'

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

	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcpresspro-5.8.0 app/controllers/phcpresspro/frontend/articles_controller.rb