Answer the question
In order to leave comments, you need to log in
How to disable Rails debug output?
In production, I want no debug information about the error to be displayed to the user. In the logs - yes, in the mail yes, but not on the screen. How to turn them off? It is necessary to disable the output of information about any errors. Where are these settings? Rails 4.2
Needs all sorts of errors, including syntax and others that my code couldn't handle. So that bad people do not see any information about errors. Well, only if there is an error without details
Answer the question
In order to leave comments, you need to log in
/config/environments/production.rbconfig.consider_all_requests_local = false
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question