Class: ImageInput
- Inherits:
-
Formtastic::Inputs::FileInput
- Object
- Formtastic::Inputs::FileInput
- ImageInput
- Defined in:
- app/inputs/image_input.rb
Instance Method Summary collapse
Instance Method Details
#image_html_options ⇒ Object
2 3 4 |
# File 'app/inputs/image_input.rb', line 2 def {class: 'image'}.merge(.fetch(:image_html, {})) end |
#to_html ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/inputs/image_input.rb', line 6 def to_html input_wrapping do label_html << image_html << builder.file_field(method, ) end end |