title: Stripe: ActionController::UrlGenerationError | No route matches | missing required keys: [:id]
body: <p>I am just learning RoR and need I am having trouble with Stripe integration. I have done everything as it says <a href="https://stripe.com/docs/checkout/guides/rails" rel="nofollow">here</a> except I have changed "charges" to "charge."</p>
  
  <p><b>The error I am receiving is:</b>
      <code>No route matches {:action=&gt;"show", :controller=&gt;"charge"} missing required keys: [:id]</code>. </p>
  
  <p>It's not letting me do: <code>&lt;%= form_tag charge_path do %&gt;</code></p>
  
  <p><b>This is my controller:</b></p>
  
  <pre><code>class ChargeController &lt; ApplicationController
  def new
  end
  
  def create
  
  # Amount in cents
  @amount = 0
  
  customer = Stripe::Customer.create(
  :email =&gt; 'jon@jonkhaykin.com',
  :card  =&gt; params[:stripeToken]
  )
  
  charge = Stripe::Charge.create(
  :customer    =&gt; customer.id,
  :amount      =&gt; @amount,
  :description =&gt; 'Inspire App Charge',
  :currency    =&gt; 'usd'
  )
  
  rescue Stripe::CardError =&gt; e
  flash[:error] = e.message
  redirect_to charge_path
  end
  end
  </code></pre>
  
  <p><b>My routes.rb file has:</b>
  <code>resources :charge</code></p>
  
  <h2>Thank you for your help!</h2>