Module: RuCaptcha::ViewHelpers

Defined in:
lib/rucaptcha/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#rucaptcha_image_tag(opts = {}) ⇒ Object



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

def rucaptcha_image_tag(opts = {})
  opts[:class] = opts[:class] || 'rucaptcha-image'
  image_tag(ru_captcha.root_url, opts)
end

#rucaptcha_input_tag(opts = {}) ⇒ Object



3
4
5
6
# File 'lib/rucaptcha/view_helpers.rb', line 3

def rucaptcha_input_tag(opts = {})
  opts[:name] = '_rucaptcha'
  tag(:input, opts)
end