From 573c57f4443fac1df4c7d1d31247d23ac92542a2 Mon Sep 17 00:00:00 2001 From: Marvin Ahlgrimm Date: Wed, 20 Mar 2024 16:42:01 +0100 Subject: [PATCH] README.md update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 228b5a5..20bd2b5 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ rendered instead of the normal template if a turbo request is made. __Record Update__: To update a record, use ```crystal -class ArticleCreateHandler < MartenTurbo::Handlers::RecordUpdate +class ArticleUpdateHandler < MartenTurbo::Handlers::RecordUpdate model Article schema ArticleSchema template_name "articles/update.html" @@ -82,7 +82,7 @@ end __Record Deletion__: To delete a record, use ```crystal -class ArticleCreateHandler < MartenTurbo::Handlers::RecordUpdate +class ArticleDeleteHandler < MartenTurbo::Handlers::RecordDelete model Article template_name "articles/delete.html" turbo_stream_name "articles/delete.turbo_stream.html"