用個範例來說吧,以下代碼會將超連結改成用表單DELETE送出,並且用一個提示視窗來作確認:. link_to 'Remove', event_path(1), :method => :delete, :data => { :confirm => ...
確定! 回上一頁