RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

sign up error on new install: 'undefined method plan_class' #160

Closed SylarRuby closed 8 years ago

SylarRuby commented 8 years ago

Maybe this is not compatible with rails 4.2.4 but this is disappointing: I use: git clone git://github.com/RailsApps/rails-stripe-membership-saas.git

After that it says to use rvm, as im using rbenv, so I installed ruby with rvm: "rvm install 2.2.3". All is well, then bundle install. Running "rails s" the go to localhost, sign_up link does not work! Why? Is not this a starter app?? I get undefined method plan_class for nil:NilClass and for the plans link: Couldn't find Plan. Am I missing a step?

DanielKehoe commented 8 years ago

I understand your frustration but did you run $ rake db:seed? Perhaps you overlooked that in the README.

SylarRuby commented 8 years ago

Thanks!

DanielKehoe commented 8 years ago

Glad to hear that solved the issue. I'll close the issue.

roc27583 commented 8 years ago

I installed using Rails Composer, and still needed to run rake db:seed, clearly didn't work in the rails composer script! So glad this was all it was. Thanks!