Skip to content

Rails 7: drop data: confirm from show template #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rubys opened this issue Dec 6, 2021 · 1 comment
Closed

Rails 7: drop data: confirm from show template #93

rubys opened this issue Dec 6, 2021 · 1 comment

Comments

@rubys
Copy link
Contributor

rubys commented Dec 6, 2021

When generating for rails 7, drop

data: { confirm: "Are you sure you want to delete this <%= singular_table_name %>?" }

from

<%%= button_to 'Destroy this <%= singular_table_name %>', <%= singular_table_name %>_path(@<%= singular_table_name %>), method: :delete, data: { confirm: "Are you sure you want to delete this <%= singular_table_name %>?" }, class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" %>

@dhh
Copy link
Member

dhh commented Dec 6, 2021

Closed via 196825f 👍

@dhh dhh closed this as completed Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants