Ruby on rails 在Desive for Rails中注册导致重定向循环

Ruby on rails 在Desive for Rails中注册导致重定向循环,ruby-on-rails,devise,ruby-on-rails-3.2,registration,Ruby On Rails,Devise,Ruby On Rails 3.2,Registration,使用轨道3.2.9和设计2.1.2。当用户转到http://localhost:3000/users/sign_up(与使用URL替换的本地主机为3000的生产相同),他们注册。提交时,他们会被反复重定向到/users/sign\u。Chrome报告: This webpage has a redirect loop The webpage at http://localhost:3000/users/sign_up has resulted in too many redirects. 日志

使用轨道3.2.9和设计2.1.2。当用户转到
http://localhost:3000/users/sign_up
(与使用URL替换的本地主机为3000的生产相同),他们注册。提交时,他们会被反复重定向到
/users/sign\u
。Chrome报告:

This webpage has a redirect loop
The webpage at http://localhost:3000/users/sign_up has resulted in too many redirects.
日志显示用户已创建,用户表也已更新以进行登录(事实上,如果我们转到另一个URL,则该用户已创建并登录到该网站):

然后日志报告重定向循环:

Redirected to http://localhost:3000/users/sign_up
Completed 302 Found in 178ms (ActiveRecord: 0.0ms)

Started GET "/users/sign_up" for 127.0.0.1 at 2012-11-17 08:39:33 -0800
Processing by Devise::RegistrationsController#new as HTML
  ←[1m←[36mUser Load (0.0ms)←[0m  ←[1mSELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1←[0m
Redirected to http://localhost:3000/users/sign_up
Filter chain halted as :require_no_authentication rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

Started GET "/users/sign_up" for 127.0.0.1 at 2012-11-17 08:39:34 -0800
令人惊讶的是,这似乎是默认行为,因为另一个新项目经历了完全相同的行为。我不应该让人们/用户/注册来注册吗

与用户相关的
rake路由的输出:

     new_user_session GET    /users/sign_in(.:format)                            devise/sessions#new
         user_session POST   /users/sign_in(.:format)                            devise/sessions#create
 destroy_user_session DELETE /users/sign_out(.:format)                           devise/sessions#destroy
        user_password POST   /users/password(.:format)                           devise/passwords#create
    new_user_password GET    /users/password/new(.:format)                       devise/passwords#new
   edit_user_password GET    /users/password/edit(.:format)                      devise/passwords#edit
                      PUT    /users/password(.:format)                           devise/passwords#update
取消用户注册获取/用户/取消(:格式)设计/注册取消 用户\注册帖子/用户(:格式)设计/注册\创建 新用户注册获取/用户/注册(:格式)设计/注册新 编辑用户注册获取/用户/编辑(:格式)设计/注册编辑 PUT/用户(:格式)设计/注册#更新
删除/用户(:格式)设计/注册#销毁

能否显示注册视图?能否发布用户控制器?您可能有一个before筛选器来验证用户控制器中的用户。注册视图未从Desive的生成视图中修改。用户控制器不存在。Deviate处理/users/*请求。您是否有自定义会话控制器?您能否发布与
用户相关的
rake routes
的输出?
     new_user_session GET    /users/sign_in(.:format)                            devise/sessions#new
         user_session POST   /users/sign_in(.:format)                            devise/sessions#create
 destroy_user_session DELETE /users/sign_out(.:format)                           devise/sessions#destroy
        user_password POST   /users/password(.:format)                           devise/passwords#create
    new_user_password GET    /users/password/new(.:format)                       devise/passwords#new
   edit_user_password GET    /users/password/edit(.:format)                      devise/passwords#edit
                      PUT    /users/password(.:format)                           devise/passwords#update