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