Hi, I am trying to determine the best approach to getting the :id associated with a selected text field using auto_complete_for. My controller has the following: auto_complete_for :user, :login I''d like to get user.id rather than user.login after an item is selected from the list. I have looked at various solutions offered on blogs, wiki etc but would appreciate guidance on what is considered the best approach. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---