Skip to content
accelerando

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

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 16-May-08 at 12:05 am | Permalink
  2. Michael wrote:

    Hihi… ;)

    Posted on 16-May-08 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 17-Feb-09 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 17-Feb-09 at 9:42 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

*

Close
E-mail It