File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 22 # For details on the DSL available within this file,
33 # see http://guides.rubyonrails.org/routing.html
44
5+ # Rambulance を開発/テスト環境でのみマウント
6+ if Rails . env . development? || Rails . env . test?
7+ mount Rambulance ::Engine => "/"
8+ end
9+
510 root "home#show"
611
712 # Render legal documents by using Keiyaku CSS
106111 # Check development sent emails
107112 mount LetterOpenerWeb ::Engine , at : "/letter_opener" if Rails . env . development?
108113
109- # 開発/テスト環境のみの便利ルート ──
110- if Rails . env . development? || Rails . env . test?
111- # Rambulance を開発/テスト環境でのみマウント
112- mount Rambulance ::Engine => "/"
113- end
114+ # Rambulance がキャッチする /404, /422, /500
115+ match "/404" , to : Rambulance ::Engine , via : :all , defaults : { status_code : 404 }
116+ match "/422" , to : Rambulance ::Engine , via : :all , defaults : { status_code : 422 }
117+ match "/500" , to : Rambulance ::Engine , via : :all , defaults : { status_code : 500 }
114118
115119end
You can’t perform that action at this time.
0 commit comments