Hi. I’m trying to do a pre-validation in a form. What I need is to do
some validations, then, depending on this validation, ask a couple of
questions to the user and to process the form, including the user’s
Last name: Doe
I need to validate the existence of the country but just to give a
warning to the user. Something like
“The country is not on our database. Some features won’t be available
for you. Do you want to proceed?”
And a yes/no checkbox.
I did a custom validation in the controller and it works but, since I’m
not using the ActiveRecord validation way, the values of the form are
Is there an ActiveRecord/Rails/Elegant way of doing this?