Include aliased tags in autocomplete

This commit is contained in:
Toks
2015-04-03 19:31:46 -04:00
parent d59b442f38
commit 558fd4d8ef
8 changed files with 65 additions and 4 deletions

View File

@@ -17,6 +17,16 @@ class TagsController < ApplicationController
end
end
def autocomplete
@tags = Tag.names_matches_with_aliases(params[:search][:name_matches])
respond_with(@tags) do |format|
format.xml do
render :xml => @tags.to_xml(:root => "tags")
end
end
end
def search
end