This project is archived and is in readonly mode.

#921 ✓invalid
Claudio Poli

eager loading fails with ArgumentError

Reported by Claudio Poli | August 28th, 2008 @ 04:13 AM | in 2.x

hi, a simple eager loading like


@account = Account.find(params[:id], :include => :group) # belongs_to

results in


vendor/rails/activerecord/lib/active_record/association_preload.rb:13:in `respond_to?'
vendor/rails/activerecord/lib/active_record/association_preload.rb:13:in `flatten'
vendor/rails/activerecord/lib/active_record/association_preload.rb:13:in `preload_associations'
vendor/rails/activerecord/lib/active_record/base.rb:1424:in `find_every'
vendor/rails/activerecord/lib/active_record/base.rb:1457:in `find_one'
vendor/rails/activerecord/lib/active_record/base.rb:1443:in `find_from_ids'
vendor/rails/activerecord/lib/active_record/base.rb:570:in `find'
app/controllers/administration/accounts_controller.rb:36:in `show'

on edge rails.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages