14 lines
326 B
Ruby
14 lines
326 B
Ruby
class TagsController < ApplicationController
|
|
def index
|
|
@cur_url = "/tags"
|
|
@title = I18n.t 'controllers.tags_controller.tagstitle'
|
|
|
|
@tags = Tag.all_with_story_counts_for(nil)
|
|
|
|
respond_to do |format|
|
|
format.html { render :action => "index" }
|
|
format.json { render :json => @tags }
|
|
end
|
|
end
|
|
end
|