Closed JunichiIto closed 1 year ago
p tag contains "Cancel my account" button, but p tags cannot contain other block elements like forms.
<h3>Cancel my account</h3> <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete %></p>
Chrome shows strange HTML in dev tools:
So it should be fixed like this:
Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete %>
or
<div>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete %></div>
p tag contains "Cancel my account" button, but p tags cannot contain other block elements like forms.
Chrome shows strange HTML in dev tools:
So it should be fixed like this:
or