0
如何將簡單驗證碼2與設計集成?我瀏覽過其他問題,但不滿意。如何在設計中使用簡單驗證碼4
如何將簡單驗證碼2與設計集成?我瀏覽過其他問題,但不滿意。如何在設計中使用簡單驗證碼4
我只是添加registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController
# POST /resource
def create
if simple_captcha_valid?
super
else
build_resource(sign_up_params)
clean_up_passwords(resource)
flash.now[:alert] = "There was an error with the Captcha code below. Please re-enter the code."
render :new
end
end
end
它擔當我的目的..