A
A
Anton Misyagin2016-07-05 14:07:05
Ruby on Rails
Anton Misyagin, 2016-07-05 14:07:05

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

1 answer(s)
A
Anton Misyagin, 2016-07-10
@sunnmas

/config/environments/production.rb
config.consider_all_requests_local = false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question