I use Ruby On Rails and devise gem.
I want redirect user after registration, b开发者_如何学编程ut 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).
Follow this wiki page, but instead of defining after_update_path_for
define after_inactive_sign_up_path_for
.
See the original registrations_controller for more information and methods.
精彩评论