Class: TagsController

Inherits:
ApplicationController show all
Defined in:
lib/app/controllers/tags_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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