If current_account is set to personal, the billing page return undefined method 'name'
dark8a•
If current_account is set to personal, the billing page return undefined method 'name' If I switch to another account, the billing page works.
Screen Shot 2020-04-26 at 10.14.33 AM.png147 KB
The only difference I see in the rails console is personal set to true.
Screen Shot 2020-04-26 at 10.16.45 AM.png92.9 KB
The User.first.accounts.first.subscribtion return default processor Jumpstart.
Screen Shot 2020-04-26 at 10.18.19 AM.png72.5 KB
I know user accounts shouldn't be able to access billing. I think this account was created automatically when I created the admin user. Is there a way to fix this issue? It works on the second account I created manually.
Thanks in advance!
dark8a•
I found out that removing the Pay::Subscription #1 made the billing page to work:
Screen Shot 2020-04-26 at 10.30.35 AM.png68.7 KB
Screen Shot 2020-04-26 at 10.32.12 AM.png92.8 KB
Screen Shot 2020-04-26 at 10.31.37 AM.png92.5 KB
Chris Oliver•
Ah yeah, the Jumpstart Pro free plan to give admins full access doesn't have a typical Plan record. I'm thinking we may want to add an exception in there, rather than just fixing the nil access.
Chris Oliver•
Forgot, this is already in JSP in one of the migrations. You don't want to delete that Plan since it's used for admins.