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