Module: StimulusPlumbers::Form::Fields::TextArea
- Included in:
- Builder
- Defined in:
- lib/stimulus_plumbers/form/fields/text_area.rb
Instance Method Summary collapse
Instance Method Details
#text_area(attribute, options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/stimulus_plumbers/form/fields/text_area.rb', line 7 def text_area(attribute, = {}) rails_opts, form_field_opts = () field = build_field(attribute, form_field_opts) html_opts = (rails_opts, field_theme(:form_textarea, error: field.error?), field.html_opts) render_field(field, super(attribute, html_opts)) end |