[英]ruby-on-rails devise gem
I use Ruby On Rails and devise gem. 我使用Ruby On Rails并设计了gem。
I want redirect user after registration, but in devise i can redirect only after sign_in (http://github.com/plataformatec/devise/wiki/How-To:-Redirect-to-a-specific-page-on-successful-sign-in). 我想在注册后重定向用户,但是在设计中,我只能在sign_in(http://github.com/plataformatec/devise/wiki/How-To:-Redirect-to-a-specific-page-on-successful-登入)。
Follow this wiki page , but instead of defining after_update_path_for
define after_inactive_sign_up_path_for
. 遵循此Wiki页面 ,但不要定义after_update_path_for
,而是定义after_inactive_sign_up_path_for
。
See the original registrations_controller for more information and methods. 有关更多信息和方法,请参见原始registrations_controller 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.