我想在confirm
消息中使用变量link_to
<%= link_to 'DESTROY!', @user, :confirm => "are you sure you want to delete #{@user.name}"%>
这似乎不起作用,它打印"are you sure you want to delete #{@user.name}"
如何在确认消息中使用变量?
我想在confirm
消息中使用变量link_to
<%= link_to 'DESTROY!', @user, :confirm => "are you sure you want to delete #{@user.name}"%>
这似乎不起作用,它打印"are you sure you want to delete #{@user.name}"
如何在确认消息中使用变量?