这可能很简单,但我不明白为什么没有错误页面。
首先,我使用Heroku作为主机,所以它肯定处于生产模式。
如果我将行“config.action\u controller.consummed\u all\u requests\u local”设置为true,我会收到一条详细的错误消息,否则,我会得到一个完全100%的空白屏幕。如果我查看源代码,也为空。
我所有的404422500。html文件是公开的,我没有碰它们。
如果我在那里开始生产模式,它们似乎在我的本地机器上工作。那一定是和Heroku有关吧?有什么想法吗?
日志告诉我没有什么有用的东西。
以下是制作的细节。rb文件
config.cache_classes = true
#ActionMailer::Base.delivery_method = :sendmail
Paperclip.options[:command_path] = "/usr/bin/"
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
# set delivery method to :smtp, :sendmail or :test
config.action_mailer.delivery_method = :smtp
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.action_view.cache_template_loading = true