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
amalagaura edited this page Jan 11, 2013
·
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, I am not sure how to detect this, resource does not work.
class Users::InvitationsController < Devise::InvitationsController
private
def resource_params
params.permit(user: [:name, :email,:invitation_token, :your_params_here])[:user]
end
end