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