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