Reputation: 2613
I'm trying to replicate a bug in development which come from the production environment.
When the bug occurs I should see a 500 server error, but rails is displaying the following page to me, which is not what I want:
the grey rails error page (the error in the image is not the one I'm trying to reproduce, but it shows they error page, which is what I'm talking about here)
How can I turn off this feature from rails so it just display a 500 error that a normal user will see?
And what is this tool/page called? I usually just call it the (red) rails error page. (but in this case it is grey for some reason, I don't know why too. Does anyone know?)
Upvotes: 0
Views: 875
Reputation: 7777
Try to the following
# config/environments/development.rb
config.consider_all_requests_local = false
By default, this value is true
because of the need to debug
code on development environment that's why, if you change value with false
then will show the error page which is designed default.
If you need to generate and design custom then the follow this tutorial.
Hope to help
Upvotes: 3
Reputation: 3510
What about run rails in production environment?
rails server -e production
Upvotes: -1