Ruby on Rails Auto complete
# view
Just a little test:
<%= text_field_with_auto_complete :contact, :name %>
# controller
auto_complete_for :contact, :name
Zwei(!) Zeilen im Zweifelsfall. Unglaublich. Jaw dropper.
Wer mehr dazu wissen möchte:
Das ganze basiert Clientseitig übrigens auf script.aculo.us
Share This
— Trackback URI
This entry (permalink) was posted on Thursday, January 11, 2007, at 11:09 pm by Michael, tagged with Tipps and categorized in Rails, Shortcuts.
The following post could be of some interest: Turn off RoRs automatic timezone conversion for columns, Rails Links, Disable Ruby On Rails Sessions, Different day, same shit: MySQL Gem again, Logging in Rails outside a controller, PDF::Writer and Ruby on Rails 2.1, Ruby on Rails vs. J2EE, PDF::Writer and Ruby on Rails 2.2.2, Don’t make that sad smilie cry even more, Rails and Grails revisited
4 Comments
da sucht man nach einem Tutorial für Autocomplete von Textfeldern und wo landet man am Ende…hätte vielleicht gleicht mal hier schauen sollen!
Hihi…
i get invalid authenticity token error in this way .then i googling for it and find this tutorial and it works for me. http://share-facts.blogspot.co.....rails.html
Hey,
i just disabled the verification for the token in the controller just for the autocomplete methods like so:
i guess you did something similiar
Post a Comment