Doing any one of these:
notifications.where("read = 'true'")
notifications.where("read = '1'")
notifications.where("read = true")
notifications.where("read = 1")
results in the error:
Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read = 'true')
However, this works just fine:
notifications.where(:read => true)
Any idea why this could be?