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