title: Ruby on rails - Stripe : "you did not set a valid publishable key"
body: <p>I have a problem I am following step by step this tutorial to include the gem stripe to my rails application : <a href="https://stripe.com/docs/checkout/rails" rel="nofollow noreferrer">https://stripe.com/docs/checkout/rails</a></p>
  
  <p>But I have an issue when I launch my payment: </p>
  
  <blockquote>
    <p>you did not set a valid publishable key. Call <code>Stripe.setPublishableKey()</code> with your publishable key.</p>
  </blockquote>
  
  <p>The tutorial I am following doesn't use this method <code>Stripe.setPublishableKey()</code> and it seems working as well ...</p>
  
  <p>I am using a <code>.env</code> file to get the API keys and I use the test keys from the tutorial.</p>
  
  <p>Any idea for the solution ?!</p>
  
  <p>Thank you very much :) If you need more information please tell me</p>
  
  <p>My actual code is a copy/paste from the tutorial I use.</p>
  
  <h2>Edit 1</h2>
  
  <p>I don't understand why but it working when I push the project on Heroku ... but I still don't understand why it's failing on local</p>