journalduhacker/app/controllers/tags_controller.rb
joshua stein 97dac71389 tags: set @title
tweak @title of filters controller
2015-11-09 10:01:43 -06:00

14 lines
286 B
Ruby

class TagsController < ApplicationController
def index
@cur_url = "/tags"
@title = "Tags"
@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