Open-Source-Access-Control-.../app/controllers/registrations_controller.rb

15 lines
259 B
Ruby
Raw Normal View History

class RegistrationsController < Devise::RegistrationsController
protected
# After signup
def after_sign_up_path_for(resource)
'/users/edit/?flash=welcome_msg'
end
# After edit
def after_update_path_for(resource)
'/users/edit'
end
end