from my WizardController i've defined N steps.
The first one includes a form (method: put) and a file upload field (image) handled through CarrierWave.
While submitting the form without changing the image, Rails triggers the PUT method while if the image if present / edited it triggers a POST (I suppose for the image upload action) leading to
ActionController::RoutingError (No route matches [POST])
My form has the following structure
<%= form_for @health_facility, url: wizard_path, method: :put, html: {multipart: true} do |f| %>
The same happens while submitting a form_tag (instead of a form_for). It performs a POST even if I've set this
<%= form_tag wizard_path, method: :put, multipart: true, class: 'form-horizontal' do %>
How can I overcome this?
Thank you