Skip to content
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

Detailed Instructions in Readme to get the example to work locally #5

Open
Patrax opened this issue May 25, 2015 · 6 comments
Open

Comments

@Patrax
Copy link

Patrax commented May 25, 2015

No description provided.

@radar
Copy link
Owner

radar commented Jun 8, 2015

@Patrax What have you tried and how has it failed?

@Patrax
Copy link
Author

Patrax commented Jun 12, 2015

I think I tried the usual:

  • bundle install
  • rake db:migrate

For both the subscribem and blorgh folders.
At first this line in the gem file for subscribem gave me some issues about not finding the URL:

gem "fake_braintree_redirect", github: "radar/fake_braintree_redirect", branch: 'master'

Then it worked. And now the main problem is that when I run

rails server

And try to create an account. Submitting the form gives me this error:

ActionController::InvalidAuthenticityToken in Subscribem::AccountsController#create
Parameters:

{"utf8"=>"✓",
 "authenticity_token"=>"1TESDiIUK3TgI+c50QujlttiR/OBLzV/cwPE89Hnopk=",
 "account"=>{"name"=>"Patricio Jeri",
 "subdomain"=>"pjeri",
 "owner_attributes"=>{"email"=>"[email protected]",
 "password"=>"[FILTERED]",
 "password_confirmation"=>"[FILTERED]"}},
 "commit"=>"Create Account"}

@radar
Copy link
Owner

radar commented Jun 17, 2015

I keep seeing this bloody InvalidAuthenticityToken error float up and I have no idea how to either reproduce it in my own apps or, when given someone else's app, fix it!

Can you share with me your code on GitHub and I can try again to fix it. If this keeps coming up I'll just ditch the concept of having it as a separate engine and make it so that you bolt the features onto an existing application.

@Patrax
Copy link
Author

Patrax commented Jun 21, 2015

I actually just downloaded your "saas_book_examples-master" branch and tried using it. So, it's weird that you can't reproduce the problem.

Maybe try doing the same; download it as a zip and try to run it on a Mac with postgres installed with brew.

@radar
Copy link
Owner

radar commented Jun 22, 2015

So I looked at the InvalidAuthenticityToken error some more over the weekend and managed to fix it. Here's the commit that fixes it: 211adde

The example app now should Just Work(tm) if you boot up blorgh and sign in as an account.

I will leave this issue open to remind me to add some proper documentation when I get a free moment next :)

@Patrax
Copy link
Author

Patrax commented Jun 22, 2015

Oh that's awesome :) , thank you Ryan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants