Rails 4 devise_invitable "The invitation token provided is not valid!" error <p>I have been following Ryan Boland's Rails multitenancy tutorial, but have run into a snag with devise_invitable. </p> <p>I create a new account and user/account owner on a chosen subdomain (mysubdomain.lvh.me:3000), from which I can send a user invitation just fine. I open the invitation link in an incognito Chrome session to ensure I am not logged in or have any current session. Upon clicking on the invitation link, I am redirected to the sign in page (mysubdomain.lvh.me:3000/users/sign_in) and see a flash notice: "The invitation token provided is not valid!"</p> <p>Related to this one:</p> <p><a href="http://stackoverflow.com/questions/25703460/rails-4-devise-invitable-invitation-token-invalid/36379472?noredirect=1#comment60376301_36379472">Rails 4 devise_invitable invitation token invalid</a></p>