Module: SmartCapcha::Helper
- Defined in:
- lib/smart_capcha_helper.rb
Instance Method Summary collapse
Instance Method Details
#smart_capcha ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/smart_capcha_helper.rb', line 3 def smart_capcha result = '' result << "<span id='smart_capcha'>" result << "<label for='captcha_answer'>" result << "#{Questionnaire.config[:label_text]} #{prepare_capcha_question}</label>" result << text_field_tag(:captcha_answer, params[:captcha_answer], :size => 30) result << "</span>" result.html_safe end |