Rails Beta请求注册并使用社交媒体共享奖励 [英] rails beta request signup with social media sharing reward

查看:62
本文介绍了Rails Beta请求注册并使用社交媒体共享奖励的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想构建一个简单的beta请求注册页面,在该页面上,当用户尽可能多地共享指向应用程序的链接时,会获得较早的奖励.

I would like to build a simple beta request signup page where the user is rewarded with an earlier reward when he is sharing the link to the application as much as possible.

可以看到这样的解决方案 trenvy.com

A solution like this is seeable on trenvy.com

  • 用户输入电子邮件
  • 用户使用其唯一的代码获得唯一的链接
  • 用户在每次注册时共享此链接,并对其获得+1计数
  • 一种admin方法丢弃了共享链接并吸引最多用户的用户电子邮件.我想使用此电子邮件列表在CampaignMonitor中使用.

任何人都知道实现这一目标的好方法是什么?还是有人写了这样的东西,或者知道一个实现了此功能的git repo来看看和学习呢? 我已经为该应用编写了一个唯一的代码生成器,该代码生成了10个字符的唯一代码. 现在,只有这种社交媒体共享对我来说尚不清楚如何以正确的方式进行处理,对此有何想法?谢谢!

Anyone knows what could be a good way to achieve this? Or someone wrote such a thing or knows a git repo that has this feature implemented as is to take a look at and learn? I have already coded a unique code generator for the app that makes unique codes of 10 chars. Now only this social media sharing is a bit unclear to me on how to approach this in rails, any ideas on that? thx!

推荐答案

在任何框架中都可以轻松实现这样的目标,因此,我认为我将首先提供一个一般性的答案,如果出现任何特定的问题,我会提到他们:

Something like this can be achieved pretty easily in any framework, so I think I'll provide a general answer first, and if any specific gems occur to me, I'll mention them:

1)唯一代码部分很容易,它只是控制器中用于检查代码有效性的参数-这将是唯一代码,该代码已添加到用户模型中以方便验证并在用户首次进入时创建他的电子邮件地址.

1) The unique code part is easy, it's just a parameter in a controller that checks the validity of the code — this would be a unique code that's added to the user model for ease of verification and created when the user first enters his email address.

2)每次访问链接时,控制器都会对其进行解析并保存一个事件(如果您希望从交互中获取最大的数据,则不只是增加一个字段,还可以保存IP用于来源国,时间网页点击等),只需为该用户的+1计数点击事件

2) Every time the link is visited, it's parsed by the controller and saves an event (don't just increment a field if you want maximum data out of the interaction, you could save IP for country of origin, time of the page hit, etc), just count the click events for that user for his +1s

3)只需编写一个快速管理站点(最近我使用Twitter引导程序),就可以看到与系统进行了交互并按份额排序的用户,并且可以使用createdend gem将其添加到任何内容中列出您喜欢的东西.

3) Just write a quick admin site (i used twitter bootstrap for this recently) that lets you see the user's who've interacted with the system and sort by shares, and you can use the createsend gem to add them to whatever list you like.

我认为没有特定的gem可以加快此过程的速度,Devise太过专业了,由于您没有存储太多信息,因此您实际上并不需要活动监视器gem,绝对可以使用twitter_bootstrap来加快构建进程的速度.管理界面. Heroku允许您将Sendgrid添加为插件,因此可以在其中进行邮件发送.

There are no specific gems I can think of that'll speed this process up, Devise is overkill, you don't really need an activity monitor gem since you're not storing much info, definitely twitter_bootstrap for speeding up building the admin interface. Heroku lets you add an Sendgrid as a plugin, so you're covered there for mail sending.

我是否缺少您的要求?认真的说,尽管这应该是2-4天的开发工作,但这里没有什么幻想.

Am i missing anything in your requirements? Seriously though this should be a 2-4 day dev effort, nothing fancy here.

这篇关于Rails Beta请求注册并使用社交媒体共享奖励的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆