Felix Felix - 5 months ago 20
Ruby Question

Rails: hide errors errors in production environment

I run my rails application (Rails 4.2.x) with the passenger module for Apache.

Is there a way to not show error messages:

enter image description here

Thanks.

Answer

Make sure the following setting is set to false in your config/environment/production.rb file:

config.consider_all_requests_local = false