This project is archived and is in readonly mode.

#500 ✓wontfix
Szymon Nowak

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

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>

People watching this ticket

Pages