Sha256: e14b1a9c7bb5529b5bfdfc285c61e688f5d6effae45a1475b29035587f9be16b

Contents?: true

Size: 365 Bytes

Versions: 3

Compression:

Stored size: 365 Bytes

Contents

require_dependency "phcpress/application_controller"

module Phcpress
	class Frontend::ArticlesController < ApplicationController

		# Layouts and Filters
		layout "phcpress/frontend"

		# Article Index
		def index
			@frontend_articles = Articles::Post.all
		end

		# Article Show
		def show
			@frontend_article = Articles::Post.find(params[:id])
		end

	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phcpress-6.2.2 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-6.2.1 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-6.2.0 app/controllers/phcpress/frontend/articles_controller.rb