Class: PagesCms::ArticlesController
Instance Method Summary
collapse
#current_account, #selected_account
Instance Method Details
#index ⇒ Object
6
7
8
9
10
11
|
# File 'app/controllers/pages_cms/articles_controller.rb', line 6
def index
@articles = Article.published
filter_params(params).each do |search, result|
@articles = @articles.public_send(search, result) if result.present?
end
end
|
#show ⇒ Object
13
14
15
|
# File 'app/controllers/pages_cms/articles_controller.rb', line 13
def show
@article = Article.find(params[:id])
end
|