I use Devise and have been trying to implement invitations. I am having an issues, can you help?
I can't get my devise model (user) to recognize the :invitation_token in the (new) method as pointed out in the episode, the hidden_field in the form never receives the invitation_token. It does get passed as a parameter though, I see it in logs.
Placing the :invitation_token and email assignments in the user_controller didn't work. I also created a registrations_controller and tried to override the new method. This didn't work either:
I use Devise and have been trying to implement invitations. I am having an issues, can you help?
I can't get my devise model (user) to recognize the :invitation_token in the (new) method as pointed out in the episode, the hidden_field in the form never receives the invitation_token. It does get passed as a parameter though, I see it in logs.
Placing the :invitation_token and email assignments in the user_controller didn't work. I also created a registrations_controller and tried to override the new method. This didn't work either:
Here is my relevant routes.rb line:
And invitation_controller.rb
Any suggestions greatly appreciated, thank you.