1
我想用變量的confirm
消息中link_to
的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}"
如何使用變量在確認信息?