views:

31

answers:

0

Hi,

I'm building my second serious Rails application and I want to play around with some ajax aswell.

What I would like to achieve is something like this:

Search for a user and click it to add him

-Searchfield

-Live feedback with clickable users

Users added to your project:

  • John Doe
  • Bob
  • Lisa

So when a user is clicked, a div or alike is added with the users name. Also, a hidden form field is added with the id of the user.

Any ideas on how I would go about this? I know the basic javascript to dynamically add the fields etc., but the live search and best way to implement it with rails I'm uncertain of.

Links to resources etc. are very welcome :)

Thanks a bunch!