This project is archived and is in readonly mode.
validates_associated fails when associated id is incorrect
Reported by Szymon Nowak | June 27th, 2008 @ 04:40 PM | in 2.0.3
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.
Comments and changes to this ticket
-
Jeremy Kemper June 28th, 2008 @ 03:24 AM
- 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
-
Pratik July 18th, 2008 @ 03:28 AM
- State changed from open to wontfix
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>