
Add #build and #create methods to has_many associations
Reported by Paul Sadauskas (Rando) | November 25th, 2007 @ 01:33 PM
Pretty self-explanatory from the title. Example, straight from the spec:
bear = @zoo.exhibits.build( :name => "Bear" )
bear.should be_kind_of(Exhibit)
@zoo.exhibits.should include(bear)
Comments and changes to this ticket
-
Nick Plante November 26th, 2007 @ 07:41 PM
- Assigned user set to Nick Plante
- Milestone cleared.
- State changed from new to resolved
tested and applied to r518. now i'm off to beijing. see you in 9 days or so :-)
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »