title: Ruby using queries with multiple options in WHERE clause
body: <p>I'd like to a better suggestion ... to use the ruby features better. Can anyone give a me a better solution to assemble this query ?</p>
  
  <pre><code>@conditions = ""
  if(ratings["G"] == "1")
    @conditions += " 'G' "
  
  end
  if(ratings["PG"] == "1")
    @conditions += " OR rating = 'PG' "
  
  end
  if(ratings["PG-13"] == "1")
    @conditions += " OR rating = 'PG-13' "
  
  end
  if(ratings["R"] == "1")
    @conditions += " OR rating = 'R' "
  
  end
  
  @movies = Movie.where("rating = "+ @conditions)
  
  return @movies
  </code></pre>
  
  <p>Thank you so much,</p>