Module: Captcher::ApplicationHelper
- Defined in:
- app/helpers/captcher/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#captcha_tag(options) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/captcher/application_helper.rb', line 3 def captcha_tag() = .symbolize_keys src = [:src] = captcha_path [:alt] = .fetch(:alt) { image_alt(src) } [:width], [:height] = extract_dimensions(.delete(:size)) if [:size] tag("img", ) end |