Editable drop down menu

Does anyone know if there’s a method in rails to do this? Basically I
want there to be a drop down menu with items to chose from, but also the
ability to enter whatever you want in the box. I just dont know offhand
if there’s something for that. Thanks alot :slight_smile:

Rails could do that just fine, but HTML has a bit of an issue with it.

The only way you can reasonably replicate this behaviour in my opinion
is by using autocomplete javascript (in prototype/scriptaculous) with
a hidden div that shows a list of possible results when you start
typing by using observe_field.

Good luck, though, because it takes some effort to get it working.

I suggest creating a whole new rails app just to muck around with this
feature, and then once you have what you like, grab the working code
and plug it into the place where you needed it.

Julian.

Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) VIDEO #3
OUT APRIL 6
http://sensei.zenunit.com/

hm ok yeah I guess that would work pretty good too. I’ll try that out
instead. Thank alot :slight_smile:

@Mark: The described autocomplete functionality was originally part of
the Rails framework and was moved out into a plugin with 2.x. So you
don’t need “good luck,” just a good plugin.