coolesting
coolesting

Reputation: 1451

Error: undefined method `like' for Sequel:Module

I get this error:

Error: undefined method `like' for Sequel:Module

using:

@info = DB[:info].where(Sequel.like(:content, "%#{params[:sc]}%")) if params[:sc]

I found the example code in Sequel's documentation:

DB[:artists].where(Sequel.like(:name, 'A%'))

What's wrong with my code?

Upvotes: 0

Views: 459

Answers (1)

Jeremy Evans
Jeremy Evans

Reputation: 12139

Which version of Sequel are you running? The documentation assumes the latest version, so if you aren't using the latest version, you should upgrade.

Upvotes: 2

Related Questions