Module: InvisibleCaptcha::ViewHelpers

Defined in:
lib/invisible_captcha/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#invisible_captcha(honeypot = nil, scope = nil, options = {}) ⇒ String

Builds the honeypot html

Parameters:

  • honeypot (Symbol) (defaults to: nil)

    name of honeypot, ie: subtitle => input name: subtitle

  • scope (Symbol) (defaults to: nil)

    name of honeypot scope, ie: topic => input name: topic

Returns:

  • (String)

    the generated html



8
9
10
# File 'lib/invisible_captcha/view_helpers.rb', line 8

def invisible_captcha(honeypot = nil, scope = nil, options = {})
  build_invisible_captcha(honeypot, scope, options)
end