我在 Rails3.2 devise_invitable (1.1.8), devise (3.1.1) 没有强参数,当我尝试注册用户时,我得到以下日志。我正在使用这条路线来自定义设计邀请控制器:
devise_for :users, path_names: {sign_in: "login", sign_out: "logout"}, :controllers => { :invitations => 'team_invitations' }
但是为什么注册请求发送到 DeviseInvitable::RegistrationsController 而不是设计注册控制器
Started POST "/users" for 127.0.0.1 at 2013-10-02 21:27:50 +1300
Processing by DeviseInvitable::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓","authenticity_token"=>"thlkjyVYHhFY3erB+9yI7uwotIU7GozswOdjz9w7DNA=",
"user"=>{"username"=>"", "email"=>"boopage@gmail.com", "password"=>"[FILTERED]"}, "commit"=>"Sign up"}
Unpermitted parameters: username, email, password
谢谢