#295 ✓resolved
Tim Lucas

[PATCH] Undefined method when saving child with nil parent of a many-to-one

Reported by Tim Lucas | May 20th, 2008 @ 02:21 AM

site = Site.create(:account => Account.first) # ok
site.account = nil
c.save # => NoMethodError: undefined method `new_record?' for nil:NilClass

Comments and changes to this ticket

  • Tim Lucas

    Tim Lucas May 20th, 2008 @ 02:31 AM

    • Title changed from “Undefined method when saving child with nil parent of a many-to-one” to “[Patch] Undefined method when saving child with nil parent of a many-to-one”
  • Tim Lucas

    Tim Lucas May 20th, 2008 @ 02:31 AM

    • Title changed from “[Patch] Undefined method when saving child with nil parent of a many-to-one” to “[PATCH] Undefined method when saving child with nil parent of a many-to-one”
  • Sam Smoot

    Sam Smoot May 20th, 2008 @ 09:28 PM

    • State changed from “new” to “resolved”

    Patch applied and pushed.

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

Attachments

Pages