RoR live-search (text_field_with_auto_complete) submit.

Posted by looneygrc on Stack Overflow See other posts from Stack Overflow or by looneygrc
Published on 2010-02-10T14:37:09Z Indexed on 2010/03/14 15:55 UTC
Read the original article Hit count: 132

Filed under:
|
|
|

I have a "Movies" and a "Actors" table and "Casts" as join-model. To be more specific "Casts" has movie_id, actor_id and rolename. I want in "Movies" form to add a live search to search through actors and a "rolename" text_field and save those to "Casts". I don't know if text_field_with_auto_complete is the right choice but i prefer not to use much javascript because i am not familiar with it. I've been searching all over the internet to find something similar to this without any result. I've manage to get it working with "@actors.each do" but it makes a very long list.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby