Skip to content

Commit

Permalink
README.md update
Browse files Browse the repository at this point in the history
  • Loading branch information
treagod authored Mar 20, 2024
1 parent f6add77 commit 573c57f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 573c57f

Please sign in to comment.