確認ダイアログを出すボタン
button_toの第三引数に:confirmを指定する。
<%= button_to '削除', {:controller => 'comment', :action => 'delete', :id => c.id, :topic_id => @topic.id}, :confirm => 'コメントを削除してよろしいですか?' %>
button_toの第三引数に:confirmを指定する。
<%= button_to '削除', {:controller => 'comment', :action => 'delete', :id => c.id, :topic_id => @topic.id}, :confirm => 'コメントを削除してよろしいですか?' %>