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, #require_user

Instance Method Details

#indexObject

Article Index



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

def index
	@article_indicies = Articles::Post.all
end

#showObject

Single Article Post



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

def show
	@article_index = Articles::Post.find(params[:id])
end