Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a39bdf6

Browse files
committed
Rambulance の導入と初期設定を追加
1 parent 92fbd66 commit a39bdf6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/application.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ class Application < Rails::Application
1111
# Initialize configuration defaults for originally generated Rails version.
1212
config.load_defaults 8.0
1313

14+
# Rambulance が提供するエラー用ルーティングを使うようにする
15+
config.exceptions_app = self.routes
16+
17+
1418
# Please, add to the `ignore` list any other `lib` subdirectories that do
1519
# not contain `.rb` files, or that should not be reloaded or eager loaded.
1620
# Common ones are `templates`, `generators`, or `middleware`, for example.

config/routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,5 @@
105105

106106
# Check development sent emails
107107
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
108+
mount Rambulance::Engine => "/"
108109
end

0 commit comments

Comments
 (0)