民间,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