Sha256: 078fd2b11006228fcb891cc88b28c70e26fa4c5d11e4d8c1a957efd38aa2305f
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
module TextCaptcha module ActionView def text_captcha_tag block = "<div id='captcha_div'>Prove you are a human : #{@question}" block = block + "#{get_hidden_field}" block = block + get_captcha_text_field + "</div>" end private def get_hidden_field "#{hidden_field '_' ,'_',:value => "#{@answer}" }" end def get_captcha_text_field "#{text_field 'textCaptcha' ,'answer',:style => 'width:50px'}" end end end ActionView::Base.class_eval { include TextCaptcha::ActionView }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webroar-0.7.0 | src/admin_panel/vendor/plugins/text_captcha/lib/text_captcha/action_view.rb |
webroar-0.6.1 | src/admin_panel/vendor/plugins/text_captcha/lib/text_captcha/action_view.rb |