0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

railsを使ってアプリを作る 削除

Posted at

router (Postを使用)
post "posts/:id/destroy" => "posts#destroy"

htmlには第三引数を設定する
link_to(リンクテキスト, リンク先URL, {method: "post"})

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?