zulhfreelancer
11/17/2016 - 7:34 AM

Rails ActiveRecord: How to find all items that starts with something?

Rails ActiveRecord: How to find all items that starts with something?

Model.where("table_column LIKE :prefix", prefix: "#{keyword}%")