I'm new to ROR and trying to build an invite based auth. Currently, I'm using Omniauth-facebook to have login using fb on my site. However, I want the users to have a custom url like - "www.mysite.com/invite/" which they can share to drive signup. I would also track these referrals so that I could incentivise users to drive such logins. I'm absolutely clueless about how to proceed and any starting pointers would be great.
One way could be to have a route for '/invite/:invite_code' and before the "/auth/facebook" is triggered I could read the invite code and increment the counter but then how do I check if the "/auth/facebook" was called from the invite page only. Does this sound correct? Or are there better solutions out there?
Thanks a lot!