民間,Actionview ::模板::錯誤與條紋時推送到Heroku
我試圖在Heroku上使用條紋部署rails webapp。這可能是預編譯資產問題。我檢查了heroku錯誤日誌,並且有一個actionview模板錯誤「undefined method stripe」
一切工作正常我的本地機器上,它只是推動到heroku時出錯。
2013-02-11T00:22:53+00:00 app[web.1]: ActionView::Template::Error (undefined method `stripe' for #<Rails::Application::Configuration:0x00000003397440>):
2013-02-11T00:22:53+00:00 app[web.1]: 7:
2013-02-11T00:22:53+00:00 app[web.1]: 6: </article>
2013-02-11T00:22:53+00:00 app[web.1]: 9: data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
2013-02-11T00:22:53+00:00 app[web.1]: 8: <script src="https://checkout.stripe.com/v2/checkout.js" class="stripe-button"
2013-02-11T00:22:53+00:00 app[web.1]: 10: data-description="You'll get your information in 2 days!"
希望有人對此問題有所瞭解。我試着下載完整的stripe.js文件並將其放入我的資產文件夾中,但這似乎沒有幫助。
這是爲我:stripe.rb在我的.gitignore。感謝您分享您的個人經驗,非常感謝! – DnfD 2014-04-18 05:58:52