cleaning dashboard & tags

This commit is contained in:
Dmitriy Zaporozhets 2012-01-23 09:54:47 +02:00
parent 98d6492582
commit 7157305d5e
8 changed files with 0 additions and 59 deletions

View file

@ -1,11 +0,0 @@
class TagsController < ApplicationController
def index
@tags = Project.tag_counts.order('count DESC')
@tags = @tags.where('name like ?', "%#{params[:term]}%") unless params[:term].blank?
respond_to do |format|
format.html
format.json { render json: @tags.limit(8).map {|t| t.name}}
end
end
end