Trying to do the following
ElectricityProfile.find_by_sql ["select * from electricity_profiles where owner_id IN ?", array]
However seems that sql doesn’t accept arrays.
Is there any other way to check column against array?
Using:
Rails 3.2.x
Ruby 193
MySQL
You need braces around the
?.or