查看更多错误详细信息rails

时间:2015-02-21 17:57:07

标签: ruby-on-rails debugging ruby-on-rails-4

当我开发时,如何在我的rails应用程序中看到更详细的错误。 现在我得到这个:

enter image description here

我知道可以激活某些内容以更详细地查看错误,但我不知道该怎么做。

任何帮助?

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:

enter image description here

1 个答案:

答案 0 :(得分:0)

检查development.rb以确保:

config.consider_all_requests_local = true