I am trying to create a search with two fields but struggling on how to
query it in active record.

I have a view with two fields. text field #userstring and search by
value #searchby

eg search bob by eithier name or id value

How do i format a query using active record to read in the parameters
and do the search condition on eithier name or id?

Ive looked at some examples but cant seem to find one that uses this
type of search.

Any examples would great

thanks

Nick
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to