<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/tabular_form_builder.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -7,8 +7,10 @@ this plugin is intended to help in creating forms. its featureset will grow in t
 
 * there is a helper method available in the views that prints out the label for a field with our without star
 
+* a TabularForumBuilder class which can be used with the form_for rails helper. It automatically wraps all form fields in table rows and cells.
 
-Example
+
+Examples
 =======
 
 # user.rb
@@ -33,7 +35,34 @@ User.required_field?(:email) # =&gt; false
 &lt;%= label_fu @user, :name %&gt; # =&gt; &lt;label for=&quot;user_name&quot;&gt;Name *&lt;/label&gt;
 &lt;%= label_fu @user, :email %&gt; # =&gt; &lt;label for=&quot;user_email&quot;&gt;Email&lt;/label&gt;
 
+# or with the form builder
+
+&lt;%- form_for :user, :builder =&gt; TabularFormBuilder do |f| -%&gt;
+  &lt;table&gt;
+  &lt;%= f.text_field :name %&gt;
+  &lt;/table&gt;
+&lt;%- end -%&gt;
+
+# prints out:
+
+&lt;form ...&gt;
+  &lt;table&gt;
+    &lt;tr&gt;
+      &lt;th&gt;&lt;label for=&quot;user_name&quot;&gt;Name: *&lt;/label&gt;&lt;/th&gt;
+      &lt;td&gt;&lt;input name=&quot;user[name]&quot; type=&quot;text&quot;/&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+  &lt;/table&gt;
+&lt;/form&gt;
+
+# some added sugar:
+
+&lt;%= f.text_fields :email, :name, :address %&gt;
+
+# call text_field for each of the attributes
+
+&lt;%= f.text_field_without_label :name %&gt;
 
+# prints out the input tag without the tr, td and label - in case you need more customization
 
 For questions, patches etc. contact alex[at]upstream-berlin.com
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,4 @@
 require 'validation_reflection'  
+require 'tabular_form_builder'
+require 'forms_fu_helper'
 ActionController::Base.helper(FormsFuHelper) </diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,5 +2,15 @@ module FormsFuHelper
     def label_fu(model, field_name)
       &quot;&lt;label for=\&quot;#{model.class.to_s.dasherize}_#{field_name}\&quot;&gt;#{field_name.to_s.humanize} #{'*' if model.class.required_field?(field_name)}&lt;/label&gt;&quot;
     end
+end
+
+ActionView::Helpers::FormBuilder.class_eval do
+  include FormsFuHelper
   
-end
\ No newline at end of file
+  def label_fu_with_form_builder(field_name)
+    label_fu_without_form_builder object, field_name
+  end
+  
+  alias_method_chain :label_fu, :form_builder
+end
+</diff>
      <filename>lib/forms_fu_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>42f4101404829c5ae7cebf2eca94a6d1e3079c41</id>
    </parent>
  </parents>
  <author>
    <name>Alexander Lang</name>
    <email>alex@skywalker.(none)</email>
  </author>
  <url>http://github.com/langalex/forms-fu/commit/148beee065627a92cab7c1aa1c1e38f20c2f35ea</url>
  <id>148beee065627a92cab7c1aa1c1e38f20c2f35ea</id>
  <committed-date>2008-04-24T02:15:21-07:00</committed-date>
  <authored-date>2008-04-24T02:15:21-07:00</authored-date>
  <message>added the TabularFormBuilder which wraps form fields in table rows and cells and automatically adds the label</message>
  <tree>d60e1d2f16ee74e8abb876652014131ceedd6e22</tree>
  <committer>
    <name>Alexander Lang</name>
    <email>alex@skywalker.(none)</email>
  </committer>
</commit>
