接下來我們來改寫看看如何自行綁事件送Ajax,首先修改 _post.html.erb ,刪掉本來的:method 和:remote 行為,補上一個delete-post class 讓我們等會綁事件上去:.
確定! 回上一頁