Closed rowofpixels closed 2 years ago
@rowofpixels may you add an entry in changelog file please?
Thanks @rowofpixels
@Spone if it's good for you I let you merge this. I'll make a patch release when merged
@rowofpixels I just released https://github.com/pantographe/view_component-form/releases/tag/v0.2.4
The
file_field
helper converts thedirect_upload
option to a data attribute: https://github.com/rails/rails/blob/main/actionview/lib/action_view/helpers/form_helper.rb#L1242This change would make this example from the rails guide (found here) work:
There may be a better alternative to
before_render
, I wasn't sure the best place to put it.#initialize
won't work since we need helpers to be accessible.