Links
model_auto_completer
Categories
model_auto_completer
model_auto_completer provides autocompletion 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 model that corresponds to the selected completion.
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.
Vitals
| Home | http://model-ac.rubyforge.org/ |
|---|---|
| Repository | svn://rubyforge.org/var/svn/model-ac/trunk/vendor/plugins/model_auto_completer |
| License | Rails' (MIT) |
| Tags |
:-P aAAAAAAAA al aut auto auto_completer autocompleter autocompletion Bab ca dropdown dssd fghgh granja hfhghgdff Impeach ingrid jkk julio kjjjjjjjjjjjjj kxcxckjkvcjkvc lala mi Obama pasa port pou que sdad sp spa teste tom ttt vik
|
| Rating | (45 votes) |
| Owner | ASPgems |
| Created | 18 January 2007 |
Comments
-
This is a cool plugin. I'm missing a way to turn off the automatic suffix generation for the text field ID. This screws up the automatic insertion of a div tag for error highlighting if the field is wrong/missing (relevant only here, if :allowfreetext => true), of course.
-
@Wolfram: good, I'm working on a new release and will add this feature. Thank you!
-
If you want modelautocompleter not to generate inline CSS, just:
<%= belongsto_autocompleter :book, :author, :fullname, {}, {}, { :skip_style => true } %>
-
@Javier Vidal, thank you, added to the docs of 1.5.
@Wolfram, provided as a flag :appendrandomsuffix, in 1.5 as well.
-
Well done,Xavier,thanks a lot.
-
It would be cool if there were a way to use this with has_many :through
-
@jc would you please send me a use case at fxn at hashref dot com?
-
Thank you for this plug-in Xavier, you've saved me from having to re-invent the wheel! ;-)
-
Thanks for this very useful plugin. It just lack auto error displaying :-(

