Rails development env dont show the error type and

2019-08-30 18:37发布

My development errors look like in production.

Here how they are looking in development: Production style errors

Instead of this error design : Development style errors

I tried to consider all request as local in production.rb but this doesn't make them looking like they are supposed to look in development.

config.consider_all_requests_local       = true

can someone help me to find out how to come back to the usual error development style? Thanks !

2条回答
男人必须洒脱
2楼-- · 2019-08-30 18:53

Make sure you are running your application in development mode,

use RAILS_ENV=development rails s

If that is not the issue check your Gemfile maybe you are using a gem for displaying errors and it is not under group :production

查看更多
仙女界的扛把子
3楼-- · 2019-08-30 19:04

Thanks a lot for your help. After an analysis of all my commits I found out it was due to a bundle update of the Gemfile.lock

查看更多
登录 后发表回答