Ruby on Rails Auto complete

January 11, 2007 by Michael

# 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

4 comments

  1. eller82 wrote:

    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!

    Posted on May 16, 2008 at 12:05 AM | Permalink
  2. Michael wrote:

    Hihi… 😉

    Posted on May 16, 2008 at 8:28 AM | Permalink
  3. Shapnik wrote:

    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

    Posted on February 17, 2009 at 9:34 AM | Permalink
  4. Michael wrote:

    Hey,
    i just disabled the verification for the token in the controller just for the autocomplete methods like so:

    skip_before_filter :verify_authenticity_token, :only => [:auto_complete_for_meta_tag_tag, :auto_complete_for_meta_tag_value]

    i guess you did something similiar 😉

    Posted on February 17, 2009 at 9:42 AM | Permalink
Post a Comment

Your email is never published. We need your name and email address only for verifying a legitimate comment. For more information, a copy of your saved data or a request to delete any data under this address, please send a short notice to michael@simons.ac from the address you used to comment on this entry.
By entering and submitting a comment, wether with or without name or email address, you'll agree that all data you have entered including your IP address will be checked and stored for a limited time by Automattic Inc., 60 29th Street #343, San Francisco, CA 94110-4929, USA. only for the purpose of avoiding spam. You can deny further storage of your data by sending an email to support@wordpress.com, with subject “Deletion of Data stored by Akismet”.
Required fields are marked *