On Wednesday, January 22, 2020 at 11:40:33 PM UTC-8, BeeRich33 wrote:
>
> Hi Sequel people.  I've read the documents from more than one source and 
> it's still not working.
>
> Code: 
> DBL.create_table? :salads do          # works
>   primary_key :id
>   String :name, size: 200
>   Integer :temp
>   String :review
>   DateTime :cdate
>   DateTime :mdate
>   String :status
> end
>
> class Salad < Sequel::Model
>     attr_accessor :id, :name, :temp, :review, :cdate, :mdate, :status
>

Remove this line, this is what is breaking things.  attr_accessor stores 
data in separate instance variables, Sequel stores data in a single 
instance variable hash.

Thanks,
Jeremy

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/8560ce1e-9fb8-4737-ad93-a963b70876b4%40googlegroups.com.

Reply via email to