Class: Phcpresspro::Frontend::ArticlesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/phcpresspro/frontend/articles_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_user, #membership_info, #new_login_url, #phcpress_recent_posts, #require_user

Instance Method Details

#indexObject

Article Index



10
11
12
# File 'app/controllers/phcpresspro/frontend/articles_controller.rb', line 10

def index
  @articles_index = Articles::Post.where(pststatus: "published")
end

#showObject

Single Article Post



15
16
17
# File 'app/controllers/phcpresspro/frontend/articles_controller.rb', line 15

def show
  @articles_single = Articles::Post.where(pststatus: "published").find(params[:id])
end