#722 ✓resolved
Justin Smestad

validates_present :association, fails silently

Reported by Justin Smestad | December 19th, 2008 @ 04:16 PM | in 0.10.0

When using validates_present on an association, it will properly refuse object creation but will not propagate any error up to merb (in this case). This poses a problem as the next line will evaluate nil.accessor and throw an error there (making it cryptic about what had failed).

This can be recreated by using my merbherd source (and adding validation requirements).

See: http://www.github.com/jsmestad/m...

Comments and changes to this ticket

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 »

Pages