Class: Bigmouth::ArticlesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /articles



11
12
13
14
# File 'app/controllers/bigmouth/articles_controller.rb', line 11

def index
  @articles = Article.all
  render :index, layout: Bigmouth.config.layout
end

#showObject

GET /articles/1



17
18
19
# File 'app/controllers/bigmouth/articles_controller.rb', line 17

def show
  render :show, layout: Bigmouth.config.layout
end