Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到此错误:
Error: undefined method `like' for Sequel:Module
使用:
@info = DB[:info].where(Sequel.like(:content, "%#{params[:sc]}%")) if params[:sc]
我在 Sequel 的文档中找到了示例代码:
DB[:artists].where(Sequel.like(:name, 'A%'))
我的代码有什么问题?
您正在运行哪个版本的 Sequel?该文档假定为最新版本,因此如果您未使用最新版本,则应升级。