way better autocomplete, ranks by popularity

This commit is contained in:
Kyle Drake 2014-09-16 01:49:33 -07:00
parent 698c602475
commit 4a4553f676
3 changed files with 11 additions and 11 deletions

4
app.rb
View file

@ -360,8 +360,8 @@ post '/tags/remove' do
redirect request.referer
end
get '/tags/suggestions/:name.json' do |name|
Tag.suggestions(name).collect {|t| t.name}.to_json
get '/tags/autocomplete/:name.json' do |name|
Tag.autocomplete(name).collect {|t| t[:name]}.to_json
end
get '/browse/?' do