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
Using Arel you can perform this safe and portable query:
title = Model.arel_table[:title] Model.where(title.matches("%#{query}%"))