Is there rails version of “where column in (value1, value2, …)”?
I know i could do OR many times, but this way is shorter.
I’m ruby/rails newbie, so i have a problem with converting the hash,
which i’m receving from the search form into the string for :conditions
in find method.
Could i instead of creating one, complicated (for me) query do something
query the database specyfing only one condition (as a condition, i
could use parameter, which is necessary; if it’s not specified there’s
nothing to search for),
then query obtained result set from the previous query with a new
condition (unless it’s nil/empty),
and so on for every received parameter?