implement go to project with autocomplete

This commit is contained in:
Reinier Balt 2013-07-20 23:21:24 +02:00
parent 01005cc3d3
commit 79fdd5d625
12 changed files with 210 additions and 100 deletions

View file

@ -52,7 +52,8 @@ class ProjectsController < ApplicationController
end
format.autocomplete do
projects = current_user.projects.active + current_user.projects.hidden
render :text => for_autocomplete(projects, params[:term])
term = params[:term] || params[:query]
render :text => for_autocomplete(projects, term)
end
end
end