加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 使用渲染模板app / app / views在heroku上渲染

发布时间:2020-12-16 19:29:57 所属栏目:百科 来源:网络整理
导读:我有一个奇怪的问题. 本地一切都很好,当我在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],:loca
我有一个奇怪的问题.

本地一切都很好,当我在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 group,它失败了.它无法呈现haml文件.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读