I’ve been struggling with this function for most of the morning, but
something just doesn’t seem right in my logic with respect to
I have a basic view that is submitting information on three variables
directly to this function. The information is accessible simply through
params[:filtera1], params[:filtera2] and params[:filtera1].
I’m trying to build a find that will check the filter_a column in my
database table (places) and list the record if filter_a matches any one
of the three parameters just passed to it.
The difficulty comes from two areas
I have not perfected the right syntax for using OR in conditions and
most of the documentation I have found is not too helpful.
There is the chance that some of the information passed through may
be equal to nil - and finds like to break at that point.
Any help would be appreciated.
PS: If anyone is looking for a small job of helping me figure out these
basic concepts in exchange for some weekly drinking money, I’d be more
than happy to consider such an arrangement. Everyone’s time is valuable,