diff --git a/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr b/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr index f0e791e77..12e88e298 100644 --- a/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr +++ b/tasks/gen/templates/resource/actions/{{folder_name}}/delete.cr.ecr @@ -1,6 +1,6 @@ class <%= pluralized_name %>::Delete < BrowserAction <%= route("Delete") %> do - <%= underscored_resource %> = <%= query_class %>.find(<%= resource_id_method_name %>) + <%= underscored_resource %> = <%= query_class %>.find(<%= resource_id_method_name %>) Delete<%= resource %>.delete(<%= underscored_resource %>) do |_operation, _deleted| flash.success = "Deleted the <%= underscored_resource %>" redirect Index