I\'m trying to write LIKE query.
I read that pure string quires aren\'t safe, however I couldn\'t find any documentation that explain how to write safe LIKE Hash Que
You can do
MyModel.where(["title LIKE ?", "%#{params[:query]}%"])