开发者

How to create invite a friend in ruby on rails?

开发者 https://www.devze.com 2022-12-15 15:32 出处:网络
I want to create the ability for a User to go to a form and put a first name and email address and send an invitation via email.

I want to create the ability for a User to go to a form and put a first name and email address and send an invitation via email.

When the recipient clicks on the included link开发者_运维百科 and registers, the Recipient and User are now "friends."

Is there a good tutorial to get me started on this?


See this Railscast on beta invites.


If you are using devise as an authentication solution you may take a look at devise_invitable which add support to devise for sending invitations by email.


You can start with the email thing by using rails builtin mailer: ActionMailer

Here you are: ActionMailer guide.


Check acts_as_inevitable plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消