Heroku上Rails 4中的自定义错误页面

时间:2013-09-03 10:48:56

标签: ruby-on-rails heroku error-handling controller ruby-on-rails-4

我谷歌周围并尝试了很多东西,但我没有做对。

我正在使用 Rails 4 ,对于一般来说还是相当新的。

有人可以向我解释一下(如果看起来),在Heroku上设置自定义错误页面的基本步骤吗?

谢谢

1 个答案:

答案 0 :(得分:7)

好的时候我认为这很好。

实际上,如果我修改了heroku上的公共/ 404,422和500错误页面。

只需修改

  • 公共/ 404.html
  • 公共/ 422.html
  • 公共/ 500.html

并且在heroku上显示正常。