How do I substitute a variable into .where for mongoid regex expressions?

前端 未结 0 848
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-26 04:13

I\'m new to using Mongoid with rails and was having some difficulty trying to search for records substituing a variable for the regex expression. Here is the code I have:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题