Class: Phcpresspro::Website::PagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/phcpresspro/website/pages_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#user_for_paper_trail

Instance Method Details

#post_indexObject

Index for All Published Posts



10
11
12
# File 'app/controllers/phcpresspro/website/pages_controller.rb', line 10

def post_index
  @phcpresspro_posts_index = Article::Post.where(pststatus: "published")
end

#post_singleObject

Single Page for Published Post



15
16
17
# File 'app/controllers/phcpresspro/website/pages_controller.rb', line 15

def post_single
  @phcpresspro_posts_single = Article::Post.friendly.find(params[:id])
end