当我通过URL访问我的Rails项目中不存在的文章,如
有没有办法关闭这个详细的错误显示?
/posts/13
时,浏览器会显示详细的错误信息:ActiveRecord::RecordNotFound in PostsController#show
Couldn't find Post with ID=13
Rails.root: ...
...
Request
Parameters:
{"id"=>"13"}
...
有没有办法关闭这个详细的错误显示?
rails s -e production
- shime