LoginSignup
0
0

More than 3 years have passed since last update.

rails6のjbuilderでArgumentErrorが発生したときの解決方法

Posted at

エラー内容

スクリーンショット 2020-11-12 17.38.03.png

解決策

jsonをシンボルで指定してあげると解決します

- render 'index', formats: 'json', handlers: 'jbuilder'
+ render 'index', formats: :json, handlers: 'jbuilder'
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