Displaying 3 results from an estimated 3 matches for "preload_one_association".
2009 Feb 02
9
ActiveRecord Unexplainable SystemStackError - Only in WEBrick
...1.0/lib/active_record/
association_preload.rb:154:in `preload_has_many_association''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
association_preload.rb:40:in `send''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
association_preload.rb:40:in `preload_one_association''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
association_preload.rb:38:in `each''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
association_preload.rb:38:in `preload_one_association''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/l...
2008 Nov 06
10
Rails 2.1.2 bug in include on has_many?
....1.2/lib/active_record/association_preload.rb:219:in
`preload_belongs_to_association''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/association_preload.rb:40:in
`send''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/association_preload.rb:40:in
`preload_one_association''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/association_preload.rb:38:in
`each''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/association_preload.rb:38:in
`preload_one_association''
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib...
2010 Dec 09
15
Rails 3 Active Record query returns "undefined method `loaded?' for #<Array:0x126a4c>"
I am getting this error on an rspec test:
undefined method `loaded?'' for #<Array:0x126a4c>
When I call:
Practice.includes("practice_members").all
Practice has_many :practice_members
PracticeMember belongs_to :practice
Practice.all returns:
[#<Practice id: 6, name: "Practice One", created_at: "2010-12-09 15:40:46",
updated_at: "2010-12-09