devise_invitable
devise_invitable copied to clipboard
How to generate the accept_user_invitation_url
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.
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