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 :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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/ On 04/04/2008, at 6:12 AM, Mark Mr wrote:> > 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 :) > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hm ok yeah I guess that would work pretty good too. I''ll try that out instead. Thank alot :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
@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. On Apr 4, 12:13 pm, Mark Mr <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> hm ok yeah I guess that would work pretty good too. I''ll try that out > instead. Thank alot :) > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---