例如,当我转到users/invitations/new,唯一的字段是:email.我想邀请一位用户,除了提供他们的电子邮件外,还提供:名字姓氏角色公司(userbelongs_tocompany)我创建了Users::InvitationsController:classUsers::InvitationsController然后我将这些字段添加到users/invitations/new.邀请发送正常,但当我接受它并输入密码时,我的验证失败并显示Noroleisselected(验证的b/c)。如何在发送邀请之前设置这些字段,并在接受邀请后保留并保存这些字段?谢谢!