我有一个奇怪的问题。
在本地,所有内容都可以正常渲染,当我在Heroku上启动它时,出现此错误:
2011-12-31T06:26:23+00:00 app[web.1]: ActionView::MissingTemplate (Missing template pages/index, application/index with {:handlers=>[:erb, :builder], :formats=>[:html], :locale=>[:en, :en]}. Searched in:
2011-12-31T06:26:23+00:00 app[web.1]: * "/app/app/views"
2011-12-31T06:26:23+00:00 app[web.1]: ):
为什么用
/app/app/views
炸毁了?为什么那里会有两个应用程序?我不知道怎么了。这是一个非常基本的应用程序。我什么都没做。
最佳答案
在我的情况下,由于haml-rails gem位于:assets组中而失败。它无法呈现haml文件。
关于ruby-on-rails - 使用渲染模板app/app/views在heroku上进行怪异的渲染,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8686750/