這樣用比較好 `<%= link_to 'Delete', post_path(post) , :method => :delete %>`