Displaying 1 result from an estimated 1 matches for "validate_on_invite".
2013 Sep 26
0
Devise Invitable and Validations -- what's the right way to do this?
...unless I am doing something wrong with my Regexps, what happens is the fields are validated, but the error messages are incorrect[1].
I also tried adding regular validations on the model, but they aren''t being called at all (only the built-in e-mail error is handled). When I tried adding validate_on_invite to my model, I got an error: uninitialized constant Devise::Models::ValidateOnInvite when I started the application.
Is there an example somewhere showing how to configure the model to validate custom fields on invitations?
Thanks!
Walter
1. Just to clarify what I mean by error messages are inc...