Model.where("table_column LIKE :prefix", prefix: "#{keyword}%")
Created
November 17, 2016 07:34
-
-
Save zulhfreelancer/d6d94bffeb46a15bc75e3613b7b0bdcf to your computer and use it in GitHub Desktop.
Rails ActiveRecord: How to find all items that starts with something?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment