journalduhacker/app/controllers/tags_controller.rb
2016-11-24 15:14:36 +01:00

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