Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

autocomplete input type #939

amolpujari opened this Issue May 22, 2013 · 1 comment


None yet
2 participants

<%= f.input :author, :as => :autocomplete, :url => "/authors" %>

url suppose to return json of authors or simply array of matching name
and it should query /authors.json?name_like=input
params[:name_like] should be implemented by user

This would be great when you do not want to list more than 100000 names


justinfrench commented Jul 4, 2013

This would make a great candidate for a custom input, but not something I think we'd merge into master because it relies on too many other parts of the application to be in place (a specific controller, a specific JSON API, a specific Javascript library, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment