条纹模态上的图像不起作用
Image on Stripe modal not working
我正在使用 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>
我搜集了资产。它在本地工作,但是图像不会出现在模态的顶部。
在config/environments/production.rb 中,以下的默认值被标记为false。
config.assets.compile = true
config.assets.digest = true
更改以下内容后运行:
rake assets:precompile
我正在使用 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>
我搜集了资产。它在本地工作,但是图像不会出现在模态的顶部。
在config/environments/production.rb 中,以下的默认值被标记为false。
config.assets.compile = true
config.assets.digest = true
更改以下内容后运行:
rake assets:precompile