0
1

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.

rails-ujs.self 500 (Internal

Posted at

Slimでフォームを作っていて追加処理したらJS側でエラーが吐かれた。

エラー文

rails-ujs.self  500 (Internal 

どうやらjsで重複してリクエストされているようだ。

app/assets/javascripts/application.js
//= require rails-ujs  # この行を削除する

//= require activestorage
//= require turbolinks
//= require jquery
//= require popper
//= require bootstrap
//= require_tree .

参考サイト
rails-ujsとjquery-ujsで2回リクエストが送られる - Qiita

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?