Hi, This is most likely trivial but I cannot find it anywhere... I have a text_field and a button. I would like to use the input in the text_field as a value to compare against a column in a mySQL database that''s not the id (call it ''name''). How can I do this? Thanks for any help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You would have to submit the form and do the comparison in the controller. The value for the textfield should come in the params[] hash. wintermute wrote:> Hi, > > This is most likely trivial but I cannot find it anywhere... I have a > text_field and a button. I would like to use the input in the > text_field as a value to compare against a column in a mySQL database > that''s not the id (call it ''name''). How can I do this? > > Thanks for any help.-- 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 -~----------~----~----~----~------~----~------~--~---