journalduhacker/app/controllers/tags_controller.rb

11 lines
242 B
Ruby
Raw Normal View History

2015-08-04 02:12:39 +02:00
class TagsController < ApplicationController
def index
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