当我开发时,如何在我的rails应用程序中看到更详细的错误。 现在我得到这个:
我知道可以激活某些内容以更详细地查看错误,但我不知道该怎么做。
任何帮助?
EDIT1:
在我的development.rb
文件中,我有这个:
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
EDIT2:
答案 0 :(得分:0)
检查development.rb
以确保:
config.consider_all_requests_local = true