Class: Magazine::ArticlesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Magazine::ArticlesController
- Includes:
- ApplicationHelper
- Defined in:
- app/controllers/magazine/articles_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /mount_point(/:category_slug).
-
#show ⇒ Object
GET /mount_point/:category_slug/:article_slug.
Methods included from ApplicationHelper
#magazine_image_path, #magazine_image_tag, #magazine_inside_public_period?, #magazine_partial_path, #method_missing, #respond_to?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Magazine::ApplicationHelper
Instance Method Details
#index ⇒ Object
GET /mount_point(/:category_slug)
9 10 11 |
# File 'app/controllers/magazine/articles_controller.rb', line 9 def index find_category(params[:category_slug]) end |
#show ⇒ Object
GET /mount_point/:category_slug/:article_slug
14 15 16 |
# File 'app/controllers/magazine/articles_controller.rb', line 14 def show find_article(params[:category_slug], params[:article_slug]) end |