Skip to content

Instantly share code, notes, and snippets.



Created Nov 30, 2012
What would you like to do?
Sequel Model: undefined method exception
require 'sequel'
DB = Sequel.sqlite 'test'
class MyModel < Sequel::Model(:My_Table)
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