Skip to content

Commit 2e553ea

Browse files
authored
Merge pull request rails#46590 from sampatbadhe/patch-2
Correct closing quotation mark for data-turbo-confirm on button_to example [ci-skip]
2 parents 0bf4f87 + 9b5863b commit 2e553ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/working_with_javascript_in_rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,5 +294,5 @@ This generates:
294294
In case of buttons the `data-turbo-confirm` attribute must be associated to the generated form as in this example:
295295

296296
```erb
297-
<%= button_to "Delete post', post, method: :delete, form: { data: { turbo_confirm: "Are you sure?" } } %>
297+
<%= button_to "Delete post", post, method: :delete, form: { data: { turbo_confirm: "Are you sure?" } } %>
298298
```

0 commit comments

Comments
 (0)