Class: Magazine::ArticlesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/magazine/articles_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /mount_point(/:category_slug)



8
9
10
# File 'app/controllers/magazine/articles_controller.rb', line 8

def index
  find_category(params[:category_slug])
end

#showObject

GET /mount_point/:category_slug/:article_slug



13
14
15
# File 'app/controllers/magazine/articles_controller.rb', line 13

def show
  find_article(params[:category_slug], params[:article_slug])
end