app/views/rows/edit.slim in rows_controller-3.0.5 vs app/views/rows/edit.slim in rows_controller-3.1.0

- old
+ new

@@ -1,18 +1,16 @@ ruby: # Template for RowsController (edit) # Requires resource model_name model_symbol # partial 'form' template - content_for(:submit_left) { + content_for(:submit_left) do link_to t('button.back').html_safe, "/#{controller_name}", class: 'button' - } + end fieldset class="wide mask" id=model_symbol legend = t('ui.editing', model: model_name).html_safe = render '/shared/error_explanation' - - @multipart ||= false - /"/#{controller_name}/update/#{@row.id}" - = form_for resource, url: "/#{controller_name}/#{@row.id}", html: {multipart: @multipart} do |f| + = form_with model: resource do |f| = render 'form', f: f = render '/rows/submit', right: %w[update OK]