ruby on rails - Can't make devise after_sign_up redirection -
excuse me this, can't find error. here registrations_controller.rb code:
class registrationscontroller < devise::registrationscontroller protected def after_sign_up_path_for(resource) edit_user_registration_path(current_user) end end in routes:
devise_for :users, :controllers => { :registrations => "registrations" } and redirection isn't working...
have tried:
class registrationscontroller < devise::registrationscontroller protected def after_sign_up_path_for(resource) '/an/example/path' end end ...then adding routes:
devise_for :users, :controllers => { :registrations => "registrations" } all this, took 30 minutes of searching googles run across that. thing worked me.
edit: might add after poking through code, doesn't results in actual redirect (despite docs say); i'm getting 200 back.
Comments
Post a Comment