Reputation: 159
The mail sent by devise_invitable includes invitation link like below.
http://127.0.0.1:3000/users/invitation/accept?invitation_token=9gAJ9Jyf7TKk95ddUFxB
I want to modify this link like below.
http://127.0.0.1:3000/users/invitation/accept?invitation_token=9gAJ9Jyf7TKk95ddUFxB&language=en
Does anyone know the solution method?
Upvotes: 0
Views: 1463
Reputation: 2040
You can customize mailer view with your own stuff
Use this for generate devise invitable views rails generate devise_invitable:views
For more information about view check this Link
And customize app/views/devise/mailer/invitation_instruction.html.erb
to get your stuff working.
UPDATE
When you invite user it will call create
action of Users::InvitationsController
and you can overide the controller also, refere Customize devise invitable Controller
Upvotes: 1