Module: SimpleCaptchaReloaded::ViewHelper
- Defined in:
- lib/simple_captcha_reloaded/view_helper.rb
Instance Method Summary collapse
Instance Method Details
#simple_captcha(key: :captcha_key, value: :captcha, refresh_button: true, id: 'simple_captcha_wrapper') ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/simple_captcha_reloaded/view_helper.rb', line 7 def simple_captcha(key: :captcha_key, value: :captcha, refresh_button: true, id: 'simple_captcha_wrapper') captcha = SimpleCaptchaReloaded.generate_captcha(id: id, request: request) render 'simple_captcha_reloaded/simple_captcha_reloaded', key: key, value: value, captcha: captcha, refresh_button: , id: id end |