We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2222744 commit 22c107bCopy full SHA for 22c107b
config/routes.rb
@@ -112,9 +112,14 @@
112
match code, to: "errors#show", via: :all, defaults: { status_code: code }
113
end
114
115
+ # 開発/テスト環境のみの便利ルート ──
116
if Rails.env.development? || Rails.env.test?
- get "/trigger_500", to: ->(env) { raise "Triggering 500 error" }
117
- get "/trigger_422", to: "errors#unprocessable_entity"
+ # 500エラーを意図的に発生させる
118
+ get "/trigger_500", to: ->(env) { raise "Triggering 500 error" }
119
+ # 422エラーを意図的に返す
120
+ get "/trigger_422", to: "errors#unprocessable_entity"
121
+ # Rambulance を開発/テスト環境でのみマウント
122
+ mount Rambulance::Engine => "/"
123
124
125
0 commit comments