查看更多错误详细信息 rails
See more errors details rails
如何在我的 rails 应用程序开发时看到更详细的错误。
现在我刚得到这个:
我知道可以激活一些东西来更详细地查看错误,但我不知道该怎么做。
有什么帮助吗?
编辑1:
在我的 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
编辑2:
检查你 development.rb
以确保:
config.consider_all_requests_local = true
如何在我的 rails 应用程序开发时看到更详细的错误。 现在我刚得到这个:
我知道可以激活一些东西来更详细地查看错误,但我不知道该怎么做。
有什么帮助吗?
编辑1:
在我的 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
编辑2:
检查你 development.rb
以确保:
config.consider_all_requests_local = true