cleaning dashboard & tags
This commit is contained in:
parent
98d6492582
commit
7157305d5e
8 changed files with 0 additions and 59 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue