model.errors
をrails cなどで表示したときに、なんのエラーだったのか見づらいなーと思ってたのが解消された(不要な情報が非表示になった)beforeはこれ(エラーがない状態)だけど、パット見分かりづらい
#<ActiveModel::Errors:0x00007ff68cda24f8 @base=#<Foo id: 6, created_at: "2021-07-09 04:28:48.056662000 +0000",
updated_at: "2021-07-09 04:28:48.168576000 +0000", email: "user@example.com", name: "Foo Bar", company: "Foo",
activated_at: "2021-07-09 04:28:39.039853000 +0000">, @errors=[]>
atter。エラーがない状態
#<ActiveModel::Errors []>
エラーがある状態。すぐわかるぞ(\( ⁰⊖⁰)/)
#<ActiveModel::Errors [#<ActiveModel::Error attribute=base, type=invalid, options={}>]>
ActionController::Base.raise_on_open_redirects = true
とするとデフォルトで外部ホストへのリダレクトを禁止(エラーになる)allow_other_host: true
オプションを付ける/var/crash
にdumpができている、という前提でartifactsとしてアップロードしたら良いのかな…