Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

validates_associated fails when associated id is incorrect

#500

This bug is already reported on Trac ( http://dev.rubyonrails.org/ticke... ), but because Trac is supposed to be deprecated and the ticket has almost 2 years I'm reposting it here.

Basically, the combo of validates_presence_of and validates_associated methods suggested in documentation fails if someone assigns id of non-existing object.

Reported by Szymon Nowak · June 27th, 2008 @ 04:40 PM

State: wontfix
Milestone: 2.0.3
Assigned to: Pratik Pratik
Importance: Medium

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to open
    • Tag changed from 2.1, activerecord, validates_associated, validations to activerecord, validates_associated, validations
    • Milestone set to 2.0.3
    • Assigned user set to Pratik

    June 28th, 2008 @ 03:24 AM

  2. Pratik
  3. Pratik
    Pratik
    • State changed from open to wontfix

    July 18th, 2008 @ 03:28 AM