module SmartCapcha::Helper

Public Instance Methods

smart_capcha() click to toggle source
# 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