Method: Tolaria::FormBuildable#attachment_field
- Defined in:
- lib/tolaria/form_buildable.rb
#attachment_field(method, options = {}) ⇒ Object
Returns a file upload field with a more pleasant interface than browser
file inputs. Changes messaging if the method
already exists.
Options are forwarded to the hidden file_field
.
63 64 65 66 67 68 69 |
# File 'lib/tolaria/form_buildable.rb', line 63 def (method, = {}) render(partial:"admin/shared/forms/attachment_field", locals: { f: self, method: method, options: , }) end |