Class: Kawara::ArticlesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Kawara::ArticlesController
- Defined in:
- app/controllers/kawara/articles_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/kawara/articles_controller.rb', line 5 def index @articles = Article.latest end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/kawara/articles_controller.rb', line 9 def show @article = Kawara::Article.find_from_published(params[:id]) end |