0

我尝试使用以下代码在下拉菜单中的注销选项中添加确认消息,但它不起作用。

<%= link_to "Logout", destroy_user_session_path, method: :delete, data: {confirm: 'Are you sure?'}, class: "dropdown-item" %>

我觉得我要么随机拼写错误,要么遗漏了一些明显的东西。提前致谢!

4

0 回答 0