module Recaptcha::Adapters::ViewMethods

Public Instance Methods

invisible_recaptcha_tags(options = {}) click to toggle source

Renders a reCAPTCHA v2 [Invisible reCAPTCHA](developers.google.com/recaptcha/docs/invisible)

# File lib/recaptcha/adapters/view_methods.rb, line 21
def invisible_recaptcha_tags(options = {})
  ::Recaptcha::Helpers.invisible_recaptcha_tags(options)
end
recaptcha_tags(options = {}) click to toggle source

Renders a reCAPTCHA [v2 Checkbox](developers.google.com/recaptcha/docs/display) widget

# File lib/recaptcha/adapters/view_methods.rb, line 16
def recaptcha_tags(options = {})
  ::Recaptcha::Helpers.recaptcha_tags(options)
end
recaptcha_v3(options = {}) click to toggle source

Renders a [reCAPTCHA v3](developers.google.com/recaptcha/docs/v3) script and (by default) a hidden input to submit the response token. You can also call the functions directly if you prefer. You can use ‘Recaptcha::Helpers.recaptcha_v3_execute_function_name(action)` to get the name of the function to call.

# File lib/recaptcha/adapters/view_methods.rb, line 11
def recaptcha_v3(options = {})
  ::Recaptcha::Helpers.recaptcha_v3(options)
end