Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rails アプリに Airbrake をインストールしました。ただし、500 が発生したときに他のアクションも実行したいと考えています。Airbrake に干渉せずに 500 個のエラーを解決するにはどうすればよいですか?
でこれを行うことができる1つの方法はApplicationController、
ApplicationController
unless Rails.application.config.consider_all_requests_local rescue_from Exception, with: :render_500 end
その後、新しいrender_500方法
render_500
def render_500(ex) notify_airbrake(ex) # render your template/message end