Indirect string match ActiveRecord query

后端 未结 0 1635
别跟我提以往
别跟我提以往 2020-12-11 07:58

I currently have a query method in rails:

Item.where("LOWER(title) LIKE ?", "%#{query}%").order("created_at DESC")
相关标签:
回答
  • 消灭零回复
提交回复
热议问题