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 5 years have passed since last update.

deleteアクションがshowアクションに飛んでしまう.....

Posted at

deleteアクションがshowアクションに飛んでしまう

既存のアプリケーションに対し削除機能を追加するべく、作業中のこと

いつも通り、削除用のリンクを作って、終わり〜

 <%= link_to "削除", agenda_path(agenda.id), method: :delete, data:{ confirm: "削除しますか?" }, class: "btn-sm btn-danger"%>

....

showアクションに遷移してしまう。。。

原因は、

nokogiriのバージョンの問題でした

nokgiriを1.10.4へアップデート

$bundle update nokogiri

Gemfile.lockの記述を訂正

capybara (3.3.1)
      addressable
      mini_mime (>= 0.1.3)
      nokogiri (>= 1.10.4) ⇦こいつらを書き換え(全部!
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      xpath (~> 3.1)
    carrierwave (1.2.2)

以上の手順で解決しました!

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?