Sha256: 36be4b00950701ad11f3952d7739988a123299f03395c11bdabe79abccd2fa1e

Contents?: true

Size: 390 Bytes

Versions: 11

Compression:

Stored size: 390 Bytes

Contents

require_dependency "phcpress/application_controller"

module Phcpress
	class Website::PagesController < ApplicationController

		# Resolve Layout for Web Pages
		layout :layouts_resolver_webpages

		# Retrieve News Posts for News Page
		def newspage
			@news_posts = News::Post.all
		end

		# Retrieve Blog Posts for Blog Page
		def blogpage
			@blog_posts = Blog::Post.all
		end

	end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
phcpress-2.0.0 app/controllers/phcpress/website/pages_controller.rb
phcpress-1.0.0 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.11.1 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.11.0 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.10.8 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.9.7 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.9.6 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.7.11 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.7.9 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.6.0 app/controllers/phcpress/website/pages_controller.rb
phcpress-0.5.9b app/controllers/phcpress/website/pages_controller.rb