lib/simple_captcha/view.rb in simple_captcha2-0.3.4 vs lib/simple_captcha/view.rb in simple_captcha2-0.4.0
- old
+ new
@@ -88,10 +88,10 @@
"#{ENV['RAILS_RELATIVE_URL_ROOT']}#{path}"
end
end
def simple_captcha_field(options={})
- html = {:autocomplete => 'off', :required => 'required'}
+ html = {:autocomplete => 'off', :autocorrect => 'off', :autocapitalize => 'off', :required => 'required'}
html.merge!(options[:input_html] || {})
html[:placeholder] = options[:placeholder] || I18n.t('simple_captcha.placeholder')
if options[:object]
text_field(options[:object], :captcha, html.merge(:value => '')) +