I''m using an auto_complete_for. Is there an easy way to return the id of the item the user selects from the list? For example - I have an auto complete drop down that has 3 items in it. phones computers monitors when the user types in "p" it shows "phones" in the auto complete. When I click enter I want to view phones so I need to pass the id to the appropriate action. How do I pass the id using auto complete? Is there a better way to do this? I basically want it to work similar to the typical drop down but I also want auto complete. -- 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 -~----------~----~----~----~------~----~------~--~---
On Jun 27, 2007, at 7:43 PM, David Modernfossil wrote:> I''m using an auto_complete_for. Is there an easy way to return the > id of > the item the user selects from the list? > > For example - I have an auto complete drop down that has 3 items in > it. > > phones > computers > monitors > > > when the user types in "p" it shows "phones" in the auto complete. > When > I click enter I want to view phones so I need to pass the id to the > appropriate action. How do I pass the id using auto complete? Is > there > a better way to do this? > > I basically want it to work similar to the typical drop down but I > also > want auto complete.That''s provided by model_auto_completer: http://agilewebdevelopment.com/plugins/model_auto_completer -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thank you. I''ve actually never installed a plugin and have been having trouble connecting to the rubyforge repository through creating a new repository location through radrails. Do you have any suggestions? -- 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 -~----------~----~----~----~------~----~------~--~---
On Jun 27, 2007, at 9:54 PM, David Modernfossil wrote:> I''ve actually never installed a plugin and have been having trouble > connecting to the rubyforge repository through creating a new > repository > location through radrails. Do you have any suggestions?The usual idiom is to cd into the root directory of your Rails application and execute this command: script/plugin install svn://rubyforge.org/var/svn/model-ac/trunk/ vendor/plugins/model_auto_completer Please note that is a single line, in case the mail gets wrapped. -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
thanks...I get this error: svn: Can''t connect to host ''rubyforge.org'': No connection could be made because the target machine actively refused it. is there some sort of log in process? -- 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 -~----------~----~----~----~------~----~------~--~---
On Jun 28, 2007, at 4:42 PM, David Modernfossil wrote:> > thanks...I get this error: > > svn: Can''t connect to host ''rubyforge.org'': No connection could be > made > because > the target machine actively refused it. > > is there some sort of log in process?You could try again with -v: script/plugin -v install URL -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---