1

是否可以要求“登录”用户完成注册才能继续?当用户通过 facebook 或其他一些 oauth/open id 提供程序登录并且会话未提供所有需要的注册数据时,就会发生这种情况。

这是我的应用程序控制器,我正在尝试这个 require_registration 方法,但它以某种方式最终陷入无限循环,不确定发生了什么。

http://pastie.org/1185477

4

1 回答 1

1

您需要防止在重定向到的操作上before_filter运行。UsersController#editbefore_filter

class UsersController
  skip_before_filter :require_registration, :only => :edit

  # ...
end
于 2010-09-28T00:25:13.440 回答