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 nor shared. Required fields are marked *