Hi,
I’ve been using a custom form builder for all my forms and I override many of the methods for the form. What I seem to be missing is how could I use the FormBuilder to add a data option to all forms for which this form builder is used?
Anyone has any idea?
@kmitov Correct me if I’m wrong, but for example text_field wraps the FormHelper text_field tag which should pass the options to the tag including HTML options, like data attributes:
Additional options on the input tag can be passed as a hash with options . These options will be tagged onto the HTML as an HTML element attribute as in the example shown.