-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check the form for any errors #87
Comments
@apotonick, @emaglio, @seuros, could you take a look? |
@TarasBardiuk I think as a workaround you can use And to fix this issue I think that we need set |
@marcelolx thanks for reply. Your suggestion to change the |
@TarasBardiuk Even |
No-no, it works, but it's not very convenient) But before the update, |
Hi.
|
I'm working on migrating from reform 2.2.4 to 2.3.3 and from reform-rails 0.1.7 to 0.2.1.
In some places we have a code like this:
The problem is, that if error was added AFTER
form.validate(params)
invocation, I cannot check errors existence usingform.errors.present?
. I guess it is becauseand
@success
is not changed if error is added after validation. Therefore, I cannot useform.errors.empty?
as well.Alternatively we can use
any?
method. But!It doesn't works as expected in other place where I use nested form:
So how should I check if there is any error including nested forms errors or errors added manually after validation?
Thanks in advance.
The text was updated successfully, but these errors were encountered: