A small and simple Rails 4 project that is ready to be used as a prelaunch site. It includes all the necessary requirements like prize groups, open/closed states, and simple social sharing.
MIT License
888
stars
532
forks
source link
If user exists redirect to refer-a-friend page #52
Sometimes people use a different computer or cleared cookies. For what ever reason the cookie is not there, they want to see their progress or fetch referral link. This pr adds a before_action :create method that will redirect them to the page if they subscribed before. previously a create error would be thrown on user.save
it also changes the email to lowercase, user that sign up with mobile browser often use Capitalised, emails, so it is important, to lowercase them for this feature to work.
Sometimes people use a different computer or cleared cookies. For what ever reason the cookie is not there, they want to see their progress or fetch referral link. This pr adds a
before_action :create
method that will redirect them to the page if they subscribed before. previously a create error would be thrown onuser.save
it also changes the email to lowercase, user that sign up with mobile browser often use Capitalised, emails, so it is important, to lowercase them for this feature to work.
i also fixed a deprecation