Class: TagsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- TagsController
- Defined in:
- lib/app/controllers/tags_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/app/controllers/tags_controller.rb', line 8 def show @tag = Tag.find_by_slug! params[:id] # @articles = @tag.recent_articles params[:page] respond_to do |format| format.html do @articles = @tag.page_articles params[:page] end format.atom do @articles = @tag.feed_articles render :layout => false end end end |