Sha256: dc3b61716984ddbc34ae8dbbc625f1541456852413234bf73d990d146ca46dee
Contents?: true
Size: 303 Bytes
Versions: 2
Compression:
Stored size: 303 Bytes
Contents
module EasyCaptcha # helper class for ActionView module ViewHelpers # generate an image_tag for captcha image def captcha_tag(*args) options = { :alt => 'captcha' } options.merge! args.extract_options! image_tag(captcha_path(:i => Time.now.to_i), options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
easy_captcha-0.4.0 | lib/easy_captcha/view_helpers.rb |
easy_captcha-0.3.0 | lib/easy_captcha/view_helpers.rb |