DockYard / valid_field

https://hex.pm/packages/valid_field
MIT License
48 stars 6 forks source link

Put params #12

Closed bcardarella closed 8 years ago

bcardarella commented 8 years ago

When doing validations like validate_confirmation a value on another field needs to be set.

bcardarella commented 8 years ago

@danmcclain ping

danmcclain commented 8 years ago

Makes sense, just to clarify, you could also set the fields in your initial model passed to with_changeset, right?

bcardarella commented 8 years ago

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

danmcclain commented 8 years ago

Ah, TIL