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