devise_invitable icon indicating copy to clipboard operation
devise_invitable copied to clipboard

users who self invite

Open jackdempsey opened this issue 12 years ago • 6 comments
trafficstars

I've had this same scenario happen a few times, and thought it might be interesting to talk out here.

devise_invitable is designed from the point of someone inside an application inviting others to it. Often I'll have a flow where a user "invites" themself. Whether they request an invite/access to the site, or a temp account is created for them and they get an email asking them to complete things later...it feels very close to the invitable code, but not exactly the same thing.

I'm honestly not sure what would or should change to make that style of use more relevant, or if you'd be interested in the topic, but rather than building a completely new gem "devise_self_invitable" I thought I'd talk it out here.

Any thoughts? Anyone else have these self invite / temp account and complete reg situations?

thx for all the work on the gem, it's excellent!

jackdempsey avatar May 09 '13 19:05 jackdempsey

devise_invitable works well for this.. that's how I use it..

I have a simple form in my landing page where a user can put the email.. the form goes to the create#invititation_controller and I skip the invitation so the user is created and the email is not sent. When I choose, I invite! the user which redirect the user to the sign up page to complete the registration process and the put the user's details in..

guyisra avatar May 09 '13 19:05 guyisra

hey guy,

Yep, I use it that way as well. It's definitely doable and I'm about to integrate it in the way I described above. Perhaps it'll be useful for me to track what configuration I use to get the end result in place. The end result of what I was/am looking for might just be a reference in a wiki on how to easily let users self invite/confirm their accounts quickly.

jackdempsey avatar May 09 '13 19:05 jackdempsey

Ah, so to reiterate - you just want an official step-through of what needs to be done in order to do the self invitation happen the best/easiest way?

guyisra avatar May 09 '13 19:05 guyisra

Sort of.

In the past I've found it easy to use the gem as designed. As soon as you want to support both the user side invite and the user invites themself flow it gets a bit messier.

How about this: I'll keep the notes as I build it out and bring back some concrete thoughts on what if anything would be worth changing or adding to the gem to make both types of flows useful.

On Thu, May 9, 2013 at 12:26 PM, guyisra [email protected] wrote:

Ah, so to reiterate - you just want an official step-through of what needs to be done in order to do the self invitation happen the best/easiest way?

— Reply to this email directly or view it on GitHubhttps://github.com/scambra/devise_invitable/issues/312#issuecomment-17684350 .

jackdempsey avatar May 09 '13 19:05 jackdempsey

k

actually I am about to do the exact same thing - have self invites and user invite a user.. so I'll see where it gets me

guyisra avatar May 09 '13 19:05 guyisra

Is it possible with current devise invitable? Or does devise invitable have to add some code for it?

scambra avatar Sep 17 '13 15:09 scambra