【问题标题】:When deploying to Heroku i get ActionView::Template::Error (Missing partial部署到 Heroku 时,我得到 ActionView::Template::Error (Missing partial
【发布时间】:2013-06-06 04:27:01
【问题描述】:

我正在将我的活动管理应用程序部署到 heroku 并收到此错误。

ActionView::Template::Error (Missing partial admin/orders/form, active_admin/resource/form, active_admin/base/form, inherited_resources/base/form, application/form with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :arb, :haml]}

我对heroku了解不多,所以我在这里寻求帮助。该错误说我缺少订单的部分表单,但我的文件夹中有它并且它在本地工作。

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 heroku


    【解决方案1】:
    git add admin/orders/form active_admin/resource/form inherited_resources/base/form ..
    
    git commit -m "missing partials"
    
    git push heroku master
    

    因为你的部分文件没有被推送到 heroku 中

    【讨论】:

      【解决方案2】:

      我在尝试使用 Coffeescript 部分时遇到了这个问题。它在开发中运行良好,但在部署到 Heroku 时就不行了。

      问题在于,为了在 Heroku 上工作,需要将 coffee-rails gem 移出资产组(其默认位置),如 What needs to be configured for Heroku to handle templates based on CoffeeScript? 所述

      由于我在谷歌搜索错误消息时首先发现了这个 StackOverflow 问题,所以我想我会发布我发现的内容。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多