<%= form_with model: @payment, scope: :payment, url: { action: 'update' } do |f| %> <%= render partial: 'form', locals: { f: f } %> <%= f.submit %> <% end %>