title: Stripe: You passed an empty string for 'card'. (works in development)
body: <p>So I have a rails app set up that is saving a "customer's" credit card information through stripe when they sign up, so that the card can be used for future purchases.  The code runs with no flaws in development on my local machine, but won't run in production on my VPS.  The error I'm getting is this --</p>
  
  <pre><code>Processing by RegistrationsController#create as HTML
  
  
  Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"iwnBhyGlReHmXhlq5QDTgrw9fdXpZnXsX+IoDEp9ufk=", "user"=&gt;{"email"=&gt;"jim@gmail.com", "password"=&gt;"[FILTERED]", "password_confirmation"=&gt;"[FILTERED]", "meatless"=&gt;"0", "comments"=&gt;"ass", "stripe_card_token"=&gt;""}, "commit"=&gt;"SIGN UP"}
  Stripe error while creating customer: You passed an empty string for 'card'. We assume empty values are an attempt to unset a parameter; however 'card' cannot be unset. You should remove 'card' from your request or supply a non-empty value
    Rendered devise/registrations/new.html.erb within layouts/login (20.4ms)
  </code></pre>
  
  <p>as you can see, it says <code>"stripe_card_token"=&gt;""</code>however, when I do this is development on my local machine, I get success --</p>
  
  <pre><code>Started POST "/users" for 127.0.0.1 at 2014-01-06 14:39:40 -0500
  Processing by RegistrationsController#create as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"a/NyynWF3loWMYB3KVR0q24mLZHj/KnKJ4/dpOJFTmY=", "user"=&gt;{"email"=&gt;"abs@gmail.com", "password"=&gt;"[FILTERED]", "password_confirmation"=&gt;"[FILTERED]", "meatless"=&gt;"0", "comments"=&gt;"abs", "stripe_card_token"=&gt;"tok_103GFj2iAIGqhTah4jL5Q3pV"}}
    User Exists (0.7ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = 'abs@gmail.com' LIMIT 1
     (0.1ms)  BEGIN
    CACHE (0.0ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = 'abs@gmail.com' LIMIT 1
    SQL (0.6ms)  INSERT INTO "users" ("comments", "created_at", "current_sign_in_at", "current_sign_in_ip", "customer_id", "email", "encrypted_password", "last_4_digits", "last_sign_in_at", "last_sign_in_ip", "meatless", "remember_created_at", "reset_password_sent_at", "reset_password_token", "roles_mask", "sign_in_count", "stripe_customer_token", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"  [["comments", "abs"], ["created_at", Mon, 06 Jan 2014 19:39:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["customer_id", nil], ["email", "abs@gmail.com"], ["encrypted_password", "$2a$10$.NeUFnXgX95FmWJeW4f6ceagVvPgQA.pOINfbqqx1llgxrgTNETim"], ["last_4_digits", "4242"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["meatless", false], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["roles_mask", nil], ["sign_in_count", 0], ["stripe_customer_token", "cus_3GFj0ZnzTa5Y89"], ["updated_at", Mon, 06 Jan 2014 19:39:42 UTC +00:00]]
     (1.8ms)  COMMIT
     (0.1ms)  BEGIN
     (0.3ms)  UPDATE "users" SET "last_sign_in_at" = '2014-01-06 19:39:42.683904', "current_sign_in_at" = '2014-01-06 19:39:42.683904', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-01-06 19:39:42.684537' WHERE "users"."id" = 9
     (0.4ms)  COMMIT
  Redirected to http://localhost:3000/
  </code></pre>
  
  <p>The code is identical... has anyone else had this issue?? What could the problem be?</p>