条纹模式上的图像不起作用

时间:2017-01-06 22:46:49

标签: ruby-on-rails stripe-payments

我正在使用Stripe Checkout功能,图像不会出现在生产模式中。

视图如下:

<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
                            data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
                            data-description="Sign up for the event!"
                            data-billing-address="true"
                            data-amount="1000"
                            data-image="/assets/crum.jpeg"
                            data-locale="auto"
                            data-label="Pay Entry Fee"
                            data-currency="eur">
                            </script>

我已经对资产进行了调查。它在本地工作,但图像不会出现在模态的顶部。

1 个答案:

答案 0 :(得分:0)

在config / environments / production.rb中,默认值将以下内容标记为false。

config.assets.compile = true  
config.assets.digest = true

更改以下运行后:

rake assets:precompile
相关问题