You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include a prepend_before_action for any action you want to secure:
classRegistrationsController < Devise::RegistrationsControllerprepend_before_action:check_captcha,only: [:create]# Change this to be any actions you want to protect.privatedefcheck_captchaifverify_recaptchatrueelseself.resource=resource_class.newsign_up_paramsrespond_with_navigational(resource){render:new}endendend
Alternatively, you can modify the create action in RegistrationsController: