RailsCasts Pro episodes are now free!

Learn more or hide this

joshsurf's Profile

GitHub User: joshsurf

Comments by

Avatar

sorry to bother you guys again. I got to the very end with everything working, but now receiving Stripe::InvalidRequestError in SubscriptionsController#create

my error highlighted this.

customer = Stripe::Customer.create(description: email, plan: plan_id, card: stripe_card_token)

Avatar

Hi guys,

great tutorial. I setup the subscription part and before integrating the stripe part, I want to add an association to the user. I have a user model with devise and want people to create a user account before being able to make a subscription. The problem is, that I am confused on how to get the user_id into the subscription. Can someone help?