OMG My deepest apologies to the group, because I'm a dumbazz.
I created the app name and a model the same constant. Really embarrassed. So sorry. -GregD On Mar 11, 2014, at 4:00 PM, Greg Ditrick <[email protected]> wrote: > Entire trace: > > NoMethodError: undefined method `dataset' for HotelFlier:Module > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:59:in > `block in associated_dataset' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:417:in > `block (2 levels) in cached_fetch' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:417:in > `fetch' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:417:in > `block in cached_fetch' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:415:in > `fetch' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:415:in > `cached_fetch' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:59:in > `associated_dataset' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1636:in > `block in def_one_to_many' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1805:in > `instance_exec' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1805:in > `_dataset' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1422:in > `block in def_association_dataset_methods' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1792:in > `_associated_dataset' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1825:in > `_load_associated_object_array' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1833:in > `_load_associated_objects' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1924:in > `load_associated_objects' > from > /Users/gregd/.gem/ruby/2.0.0/gems/sequel-4.8.0/lib/sequel/model/associations.rb:1428:in > `block in def_association_method' > from (irb):2 > from > /Users/gregd/.gem/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands/console.rb:90:in > `start' > from > /Users/gregd/.gem/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands/console.rb:9:in > `start' > from > /Users/gregd/.gem/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:62:in > `<top (required)>' > from bin/rails:4:in `require' > from bin/rails:4:in `<main> > > -GregD > > > On Mar 11, 2014, at 3:52 PM, GregD <[email protected]> wrote: > >> My env is all the latest: >> Rails 4.0.2 >> Sequel 4.8 >> sequel-rails latest >> Postgres pg gem >> >> I'm tempted to run Rails 3 since I know that works with >> talentbox-sequel-rails. >> >> This is just a simple >> >> class Hotel < Sequel::Model >> one_to_many :fliers, class: HotelFlier >> end >> >> if I do Hotel.first.fliers, I get the error. >> >> On Tuesday, March 11, 2014 3:46:59 PM UTC-4, GregD wrote: >> Not sure what I have wrong. >> >> Simple one_to_many in Rails 4.0.2 is failing. >> >> NoMethodError: undefined method `dataset' for HotelFlier:Module >> >> I don't think this is a Sequel problem. This is either an user error (me) >> or a sequel-rails problem. Has anyone seen this before? >> >> >> >> Thanks, >> >> -GregD >> >> >> >> >> -- >> 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 http://groups.google.com/group/sequel-talk. >> For more options, visit https://groups.google.com/d/optout. > > -- > 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 http://groups.google.com/group/sequel-talk. > For more options, visit https://groups.google.com/d/optout. -- 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 http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
