On Monday, January 13, 2014 1:07:20 PM UTC-8, tony wrote: > > > I'm aware of this already and I used it and if I do artist.to_json I get > the following errors > > NoMethodError - undefined method `albums_id' for #<Artist:0x009fd541af477>: > Without a backtrace and the code you are running, I can't do much to diagnose this issue.
Note that you shouldn't need to call Dataset#graph. You should be using eager_graph instead. Perhaps something like: Artist.eager_graph(:albums).where(:albums__sold => 21).to_json(:include=>:albums) If you still need help, please submit a self-contained example showing the problem. 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 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/groups/opt_out.
