journalduhacker/app/controllers/tags_controller.rb

14 lines
326 B
Ruby
Raw Normal View History

2015-08-04 02:12:39 +02:00
class TagsController < ApplicationController
def index
@cur_url = "/tags"
2016-11-24 15:14:36 +01:00
@title = I18n.t 'controllers.tags_controller.tagstitle'
2015-11-09 16:52:32 +01:00
@tags = Tag.all_with_story_counts_for(nil)
respond_to do |format|
format.html { render :action => "index" }
format.json { render :json => @tags }
end
2015-08-04 02:12:39 +02:00
end
end