diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb new file mode 100644 index 0000000..d4f50bc --- /dev/null +++ b/app/controllers/registrations_controller.rb @@ -0,0 +1,12 @@ +class RegistrationsController < Devise::RegistrationsController + + before_filter :check_for_cancel + + def check_for_cancel + if params[:commit] == 'cancel' + redirect_to forums_path + end + end + + +end