I must have set up my app incorrectly; any help is appreciated.

I am connecting to my database successfully and can access all my 
tables/values through the datasets I get from DB[:users].

However when I try to use the model (eg. User.first), the model has nil 
values for all its attributes.

Is there some connection I am missing?

For more clarity:

puts DB[:users].count              # => 24
puts DB[:users].first['name']     # => Kaiser

puts User.all.count                   # => 24
puts User.first.name                 # => nil

If it helps I am building a roda app modeled after 
https://github.com/jeremyevans/roda-sequel-stack 

Thanks so much!
Kaiser

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to