#31 ✓resolved
Rein Henrichs

#has_many association not working

Reported by Rein Henrichs | October 27th, 2007 @ 02:24 PM

Comments and changes to this ticket

  • Sam Smoot

    Sam Smoot October 27th, 2007 @ 04:53 PM

    • State changed from “new” to “resolved”

    It actually does work, but HasManyAssociation::Set#inspect was borked, so it was misleading in irb since it would always display "nil". This is resolved in r390.

  • Sam Smoot

    Sam Smoot October 27th, 2007 @ 04:54 PM

    The spec:

    it "should display correctly when inspected" do
      Zoo.first(:name => 'Dallas').exhibits.inspect.should match(/\#\<Exhibit\:0x.{7}/)
    end
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

People watching this ticket

Tags

Pages