Just a brief email to announce the first release of
model_auto_completer provides auto completion for models. That is,
the user autocompletes a text field, but the widget is able to manage
a hidden field that stores the ID of the corresponding model.
Such a widget may be useful when the number of options is too much
for a select. Say you need to assign a director to a movie having a
database of hundreds of directors. With this plugin it is easy to let
the user autocomplete by director name, and have a robust database ID
managed under the hood.
The plugin has been designed following standard Rails idioms, so in
its most basic use case you just need to do this in the view:
<%= belongs_to_auto_completer :movie, :director, :fullname %>
There are a few configuration options, and a much more generic
helper. The home page documents everything. See
This is my first plugin, any feedback will be very welcome!