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