You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ismael Abreu edited this page Dec 21, 2016
·
7 revisions
Invitable gem uses 'resource_params' method in the controller methods to parse the params for all the actions (including new). So customizing the controller is straightforward, need to adjust if your resource is not :user.
class Users::InvitationsController < Devise::InvitationsController
private
def resource_params
params.require(:user).permit(:name, :email,:invitation_token, :your_params_here)
end
end