You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some custom behavior which applies to all forms in my app. I can either follow https://github.com/plataformatec/simple_form#custom-form-builder (and replace all simple_form_for-calls) or monkeypatch SimpleForm::FormBuilder, but I was thinking if it might make sense to make a custom form_builder configurable. This would allow users to define something like a ApplicationFormBuilder (analogous to ApplicationRecord etc.) which has app-specific behavior. Configuration would simply be:
I have some custom behavior which applies to all forms in my app. I can either follow https://github.com/plataformatec/simple_form#custom-form-builder (and replace all
simple_form_for
-calls) or monkeypatchSimpleForm::FormBuilder
, but I was thinking if it might make sense to make a custom form_builder configurable. This would allow users to define something like aApplicationFormBuilder
(analogous toApplicationRecord
etc.) which has app-specific behavior. Configuration would simply be:I'd be willing to put a PR together, but I first wanted to get a sense if this would be considered a useful addition?
The text was updated successfully, but these errors were encountered: