Closed bcardarella closed 8 years ago
@danmcclain ping
Makes sense, just to clarify, you could also set the fields in your initial model passed to with_changeset, right?
No you cannot. The confirmation validation only works from the param values, not the original model values
On Thursday, March 3, 2016, Dan McClain notifications@github.com wrote:
Makes sense, just to clarify, you could also set the fields in your initial model passed to with_changeset, right?
— Reply to this email directly or view it on GitHub https://github.com/DockYard/valid_field/pull/12#issuecomment-191909870.
Brian Cardarella CEO of DockYard Visit us: http://dockyard.com Call us: (855) DOCK-YRD Follow me on Twitter: http://twitter.com/bcardarella Follow us on Twitter: http://twitter.com/DockYard
Ah, TIL
When doing validations like
validate_confirmation
a value on another field needs to be set.