Class: PagesCms::ArticlesController

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

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
# File 'app/controllers/pages_cms/articles_controller.rb', line 3

def show
  @article  = Article.find(params[:id])
  @blog     = Blog.find_by_slug(params[:slug])
end