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 2
2
# For details on the DSL available within this file,
3
3
# see http://guides.rubyonrails.org/routing.html
4
4
5
+ # Rambulance を開発/テスト環境でのみマウント
6
+ if Rails . env . development? || Rails . env . test?
7
+ mount Rambulance ::Engine => "/"
8
+ end
9
+
5
10
root "home#show"
6
11
7
12
# Render legal documents by using Keiyaku CSS
106
111
# Check development sent emails
107
112
mount LetterOpenerWeb ::Engine , at : "/letter_opener" if Rails . env . development?
108
113
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 }
114
118
115
119
end
You can’t perform that action at this time.
0 commit comments