Module: Katalyst::GoogleApis::FormBuilder
- Defined in:
- app/helpers/katalyst/google_apis/form_builder.rb
Overview
rubocop:disable Rails/HelperInstanceVariable
Defined Under Namespace
Classes: RecaptchaField
Instance Method Summary collapse
-
#recaptcha_field(attribute = :recaptcha_token, site_key: GoogleApis.config.recaptcha.site_key) ⇒ Object
:method: recaptcha_field.
Instance Method Details
#recaptcha_field(attribute = :recaptcha_token, site_key: GoogleApis.config.recaptcha.site_key) ⇒ Object
:method: recaptcha_field
:call-seq: recaptcha_field(method = :recaptcha_token, options = {})
<%= form_with model: @contact do |f| %>
<%= f.recaptcha_field %>
<% end %>
Please refer to the documentation of the base helper for details.
17 18 19 |
# File 'app/helpers/katalyst/google_apis/form_builder.rb', line 17 def recaptcha_field(attribute = :recaptcha_token, site_key: GoogleApis.config.recaptcha.site_key, **) RecaptchaField.new(@object_name, attribute, site_key:, **).render(@template) end |