Ah I also didn't know you needed the gem *pg_hstore*. Works now. Cheers
On Sunday, August 6, 2023 at 11:06:19 AM UTC-4 [email protected] wrote: > Oops forgot that. But a new require error: > > *cannot load such file -- sequel/extensions/hstore (LoadError)* > > On Saturday, August 5, 2023 at 8:55:20 PM UTC-4 Jeremy Evans wrote: > >> On Sat, Aug 5, 2023 at 3:52 PM [email protected] <[email protected]> wrote: >> >>> For some reason I can't seem to Hash.store. >>> >>> >>> >>> >>> >>> >>> >>> *a = { :a => "orange", :b => "red", :c => "green" }trial = >>> Sequel.hstore(a)ap trial* >>> >>> Throws error: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> *{ :a => "orange", :b => "red", :c => >>> "green"}/users/rich/app.rb:303:in `<main>': undefined method `hstore' for >>> Sequel:Module (NoMethodError)trial = Sequel.hstore(a) ^^^^^^^* >>> >>> I am using Sequel 5.71.0 >>> >>> Any insight appreciated. Cheers >>> >> >> Did you load the extension into the Database object, as described in the >> documentation ( >> https://sequel.jeremyevans.net/rdoc-plugins/files/lib/sequel/extensions/pg_hstore_rb.html) >> ?: >> >> DB.extension :pg_hstore >> >> 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/76067d2b-086c-4776-ae74-a88e53d239cdn%40googlegroups.com.
