app/controllers/administrate/application_controller.rb in administrate-1.0.0.beta1 vs app/controllers/administrate/application_controller.rb in administrate-1.0.0.beta2

- old
+ new

@@ -58,11 +58,12 @@ def update if requested_resource.update(resource_params) redirect_to( after_resource_updated_path(requested_resource), - notice: translate_with_resource("update.success") + notice: translate_with_resource("update.success"), + status: :see_other ) else render :edit, locals: { page: Administrate::Page::Form.new(dashboard, requested_resource) }, status: :unprocessable_entity @@ -73,10 +74,10 @@ if requested_resource.destroy flash[:notice] = translate_with_resource("destroy.success") else flash[:error] = requested_resource.errors.full_messages.join("<br/>") end - redirect_to after_resource_destroyed_path(requested_resource) + redirect_to after_resource_destroyed_path(requested_resource), status: :see_other end private def filter_resources(resources, search_term:)