Nuestro primer plugin, y ya van mas de 2 centavos.
Xavier ha publicado nuestro primer plugin para Rails. Su objetivo es facilitar la selcción que se haría de un menu mediante auto-completado de texto.
Lo podeis encontrar en model_auto_completer
Este es el post en el que se anunció su publciación:
Just a brief email to announce the first release of model_auto_completer.
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 model that corresponds to the selected completion. This works with a small contract, the action is expected to send an ID attribute per LI that ends with some integer.
This 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:
Deje un comentario