devise_invitable icon indicating copy to clipboard operation
devise_invitable copied to clipboard

How to generate the accept_user_invitation_url

Open andricicezar opened this issue 10 years ago • 1 comments

Hello,

I need the link accept_user_invitation_url. Any ideas how can I do that? I can't find how to get the raw_invitation_token to generate the link.

Thanks.

andricicezar avatar Aug 08 '15 11:08 andricicezar

In the email view, you can use @resource.raw_invitation_token or @token, they are the same

If you are loading the resource from db, you don't have raw token anymore, that's the point of the raw token, don't save it and save encrypted one to db. Probably the only way is generate new token, then you can use raw_invitation_token method

scambra avatar Aug 10 '15 08:08 scambra