Skip to content

Instantly share code, notes, and snippets.

@pmros pmros/gist:4177601
Created Nov 30, 2012

Embed
What would you like to do?
Sequel Model: undefined method exception
require 'sequel'
DB = Sequel.sqlite 'test'
class MyModel < Sequel::Model(:My_Table)
end
m = MyModel.first
m.columns #=> [:x_c1, :x_c2, :c3]
m.x_c1 #=> undefined method!!!
m.x_c2 #=> undefined method!!!
m.c3 #=> undefined method!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.