I am trying to do a like query like so
def self.search(search, page = 1 ) paginate :per_page => 5, :page =>
If someone is using column names like "key" or "value", then you still see the same error that your mysql query syntax is bad. This should fix:
"key"
"value"
.where("`key` LIKE ?", "%#{key}%")