We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Globally overwriting the field_error_proc can cause issues if multiple form builders are used in the same app.
A potential solution is to use a similar technique that is used in https://github.com/plataformatec/simple_form, specifically here..
https://github.com/plataformatec/simple_form/blob/48cab46ca4d26236b446d870f5d25cd27e4b4701/lib/simple_form.rb#L175-L178
and here...
https://github.com/plataformatec/simple_form/blob/c3a307cb9501208e053f771738e34a3d93d33858/lib/simple_form/action_view_extensions/form_helper.rb#L41-L49
which only changes the field_error_proc within the custom form builder.
The text was updated successfully, but these errors were encountered:
What would be a use case for using multiple form builders?
Sorry, something went wrong.
@dsandstrom One form builder for an admin backend and another for a public frontend as one example.
No branches or pull requests
Globally overwriting the field_error_proc can cause issues if multiple form builders are used in the same app.
A potential solution is to use a similar technique that is used in https://github.com/plataformatec/simple_form, specifically here..
https://github.com/plataformatec/simple_form/blob/48cab46ca4d26236b446d870f5d25cd27e4b4701/lib/simple_form.rb#L175-L178
and here...
https://github.com/plataformatec/simple_form/blob/c3a307cb9501208e053f771738e34a3d93d33858/lib/simple_form/action_view_extensions/form_helper.rb#L41-L49
which only changes the field_error_proc within the custom form builder.
The text was updated successfully, but these errors were encountered: