<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,17 +7,17 @@ module NegativeCaptchaViewHelpers
   end
   
   def negative_text_field_tag(negative_captcha, field, options={})
-    text_field_tag(negative_captcha.fields[field], negative_captcha.values[field], options.merge(:tabindex =&gt; '1')) +
-    content_tag('div', :style =&gt; 'position: absolute; left: -2000px;') {
-      text_field_tag(field, '', :tabindex =&gt; '999', :autocomplete =&gt; 'off')
-    }
+    [
+      text_field_tag(negative_captcha.fields[field], negative_captcha.values[field], options.merge(:tabindex =&gt; '1')),
+      &quot;&lt;div style='position: absolute; left: -2000px;'&gt;&quot; + text_field_tag(field, '', :tabindex =&gt; '999', :autocomplete =&gt; 'off') + &quot;&lt;/div&gt;&quot;
+    ].join
   end
   
   def negative_text_area_tag(negative_captcha, field, options={})
-    text_area_tag(negative_captcha.fields[field], negative_captcha.values[field], options.merge(:tabindex =&gt; '1')) +
-    content_tag('div', :style =&gt; 'position: absolute; left: -2000px;') {
-      text_area_tag(field, '', :tabindex =&gt; '999', :autocomplete =&gt; 'off')
-    }
+    [
+      text_area_tag(negative_captcha.fields[field], negative_captcha.values[field] || options[:value], options.merge(:tabindex =&gt; '1')),
+      &quot;&lt;div style='position: absolute; left: -2000px;'&gt;&quot; + text_area_tag(field, '', :tabindex =&gt; '999', :autocomplete =&gt; 'off') + &quot;&lt;/div&gt;&quot;
+    ].join
   end
   
   #TODO: Select, check_box, etc</diff>
      <filename>lib/negative_captcha_view_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ea70c38ba5d2116fcacb2a2a08554337175c8321</id>
    </parent>
  </parents>
  <author>
    <name>Sean Roberts</name>
    <email>roberts.sean@gmail.com</email>
  </author>
  <url>http://github.com/subwindow/negative-captcha/commit/330d206eab208b9f0bf7bffda23fb32dd70603de</url>
  <id>330d206eab208b9f0bf7bffda23fb32dd70603de</id>
  <committed-date>2008-10-27T13:57:36-07:00</committed-date>
  <authored-date>2008-10-27T13:57:36-07:00</authored-date>
  <message>Changed view helpers to work properly with HAML</message>
  <tree>cde181c586b5c18bb8247c038aaa5da69e65753c</tree>
  <committer>
    <name>Sean Roberts</name>
    <email>roberts.sean@gmail.com</email>
  </committer>
</commit>
