1

When I browse the site I get:

We're sorry, but something went wrong.

as I've seen its a 500.html file, so its some internal server error, but how can I make display those errors?

I've tried this:

1) putting ENV['RAILS_ENV'] ||= 'development'in environment.rb, but nothing happened

2) config.log_level = :any, then looked at the production.log, but there is not 500 errors

Or what I need to write in the 500.html to see errors?, or just display it no matter how.

4

1 回答 1

4

您的日志文件(无论它们写在哪里)都应该包含您的错误。

如果您仍然想在浏览器中查看错误,您可以在 environment/production.rb 中更改以下内容(但将其视为临时解决方法)。确保将其切换回来。

config.consider_all_requests_local = true

于 2012-11-03T08:59:35.960 回答