Module: EasyCaptcha::ViewHelpers
- Defined in:
- lib/easy_captcha/view_helpers.rb
Overview
helper class for ActionView
Instance Method Summary collapse
-
#captcha_tag(*args) ⇒ Object
generate an image_tag for captcha image.
Instance Method Details
#captcha_tag(*args) ⇒ Object
generate an image_tag for captcha image
7 8 9 10 11 |
# File 'lib/easy_captcha/view_helpers.rb', line 7 def captcha_tag(*args) = { alt: 'captcha', width: EasyCaptcha.captcha_image_width, height: EasyCaptcha.captcha_image_height } .merge! args. image_tag(captcha_path(i: Time.now.to_i), ) end |