In an attempt to learn RoR, I’m porting a simple contact manager app I
wrote in PHP/MySQL to RoR. I’ve gotten most of it to work and learned a
lot along the way, but I simply cannot get the searching to work, and
I’m sure I’m just making it harder than it really is. I sure could use a
hand. I have a search page that has a text field and a pulldown box with
the following options that coralate with the fields in the db:
Table name == contacts
…and displayed the results.
So if I want a search page, what do I do? What do I put in my
contacts_controller (def search … I’m assuming),
my search.rhtml? Do I need a results page too, or do they get posted in
the same page? Do I have to add anything
to a view, too?
Many, many thanks!!! (I’m pulling my hair out!)