app/views/trestle/resource/edit.html.erb in trestle-0.8.3 vs app/views/trestle/resource/edit.html.erb in trestle-0.8.4

- old
+ new

@@ -1,6 +1,6 @@ -<% title = I18n.t("admin.titles.edit", default: "Editing %{model_name}", model_name: admin.model_name, pluralized_model_name: admin.model_name.pluralize) %> +<% title = t("admin.titles.edit", default: "Editing %{model_name}", model_name: admin.model_name, pluralized_model_name: admin.model_name.pluralize) %> <% content_for(:title, title) %> <% breadcrumb title %> <% content_for(:primary_toolbar) do %> @@ -11,8 +11,8 @@ <%= link_to admin.path(:destroy, id: admin.to_param(instance)), method: :delete, class: "btn btn-danger", data: { toggle: "confirm-delete", placement: "bottom" } do %> <%= icon("fa fa-trash") %> <%= t("admin.buttons.delete", default: "Delete %{model_name}", model_name: admin.model_name) %> <% end unless admin.readonly? %> <% end %> -<%= trestle_form_for instance, url: admin.readonly? ? "#" : admin.path(:update, id: admin.to_param(instance)) do |f| %> +<%= trestle_form_for instance, url: admin.readonly? ? "#" : admin.path(:update, id: admin.to_param(instance)), method: :patch do |f| %> <%= render partial: "form", layout: "layout" %> <% end %>