-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoMethodError in RegistrationsController#create undefined method `amount' for nil:NilClass #163
Comments
Going to before your fix, can you provide the full stack trace and any relevant methods that are called? What I'm trying to get at is figuring out if the error you're seeing for "Couldn't find SubscriptionPlan" is in a view, controller or model. |
I actually created an issue not realizing at first that its the same issue here. I will post what I set: Hey Guys/Gals, want to thank you for your detailed tutorials. I recently was introduced to Rails from a friend that was trying to get me to build this membership product in rails instead of the current platform I am using. I've worked on this for the past week and problem after problem trying to get this to go live lol. I managed to overcome all of the issues except I keep getting an error when clicking on the signup link:
No method error:
Seems to be an issue with 'data-payola-plan-type' => resource.plan.plan_class |
So ran this in rails console: CreatePlanService.new.call and this fixed my issue @AfolabiOlaoluwa. |
@beardedguru can you hint what the fix (CreatePlanService.new.call) tackles or fixed really. Somewhat looks like the hack in Seed.rb file. |
@AfolabiOlaoluwa Actually looks like we may have over looked this in the instructions because I saw this in a stackoverflow post but did a quick search for it and it was written in the article here: https://github.com/RailsApps/rails-stripe-membership-saas/blob/master/README.textile |
I have an already existing jobs board application, and I have tried to implement this great work with it such that I can have stripe-membership on my http://localhost:3000/companies.
Note changes:
When I click to SignUp for a plan and it renders a SignUp form, I get the following error:
Fix - I tried to change my Silver Plan id on my SubscriptionPlan table to "0" and it went through which is wrong but dont know what to do with it.
But new problem now is that, when I try to Sign Up for a Subscription Plan as a Company, it fails and give me the following error:
Yet, a company/user as you have it is created right in in my Company's table.
How do I fix all this? If this can be gemified and it intalls as an engine on any already existing model, it would be nice.
The text was updated successfully, but these errors were encountered: