Open dbbooke opened 5 years ago
So i added this in my invites mailer. @user_registration_url = Invitation.configuration.user_registration_url.call(invite_token: @invite.token)
@user_registration_url = Invitation.configuration.user_registration_url.call(invite_token: @invite.token)
Im not getting any errors but the token that generated is not showing in the url I can see the token in the console. Here whats output in the console
INSERT INTO "invites" ("email", "token", "sender_id", "invitable_id", "invitable_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email","test@gmail.com"], ["token", "bbe593b6316db9550e078a4d97399f1ed65a3a65"], ["sender_id", 95], ["invitable_id", 82], ["invitable_type", "Patient"], ["created_at", "2019-01-26 05:06:20.381523"], ["updated_at", "2019-01-26 05:06:20.381523"]]
Here is the email i get
test@gmail.com has invited you to # at http://localhost:3000/. You can accept the invitation with the url below.
So i added this in my invites mailer.
@user_registration_url = Invitation.configuration.user_registration_url.call(invite_token: @invite.token)
Im not getting any errors but the token that generated is not showing in the url I can see the token in the console. Here whats output in the console
INSERT INTO "invites" ("email", "token", "sender_id", "invitable_id", "invitable_type", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email","test@gmail.com"], ["token", "bbe593b6316db9550e078a4d97399f1ed65a3a65"], ["sender_id", 95], ["invitable_id", 82], ["invitable_type", "Patient"], ["created_at", "2019-01-26 05:06:20.381523"], ["updated_at", "2019-01-26 05:06:20.381523"]]
Here is the email i get
test@gmail.com has invited you to # at http://localhost:3000/. You can accept the invitation with the url below.