<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,41 +1,81 @@
 class Symbol
   
+  # See Mack::ViewHelpers::FormHelpers check_box for more information
+  # 
+  # Examples:
+  #   @user = User.new(:accepted_tos =&gt; true)
+  #   &lt;%= :user.check_box :accepted_tos %&gt; # =&gt; &lt;input checked=&quot;checked&quot; id=&quot;user_accepted_tos&quot; name=&quot;user[accepted_tos]&quot; type=&quot;checkbox&quot; /&gt;
+  #   &lt;%= :i_dont_exist.checkbox %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;checkbox&quot; /&gt;
   def check_box(*args)
     Thread.current[:view_template].check_box(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers file_field for more information
+  # 
+  # Examples:
+  #   @user = User.new(:bio_file =&gt; &quot;~/bio.doc&quot;)
+  #   &lt;%= :user.file_field :bio_file %&gt; # =&gt; &lt;input id=&quot;user_bio_field&quot; name=&quot;user[bio_field]&quot; type=&quot;file&quot; value=&quot;~/bio.doc&quot; /&gt;
+  #   &lt;%= :i_dont_exist.file_field %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;file&quot; value=&quot;&quot; /&gt;
   def file_field(*args)
     Thread.current[:view_template].file_field(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers hidden_field for more information
+  # 
+  # Examples:
+  #   @user = User.new(:email =&gt; &quot;mark@mackframework.com&quot;)
+  #   &lt;%= :user.hidden_field :email %&gt; # =&gt; &lt;input id=&quot;user_email&quot; name=&quot;user[email]&quot; type=&quot;hidden&quot; value=&quot;mark@mackframework.com&quot; /&gt;
+  #   &lt;%= :i_dont_exist.hidden_field %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;hidden&quot; /&gt;
   def hidden_field(*args)
     Thread.current[:view_template].hidden_field(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers image_submit for more information
   def image_submit(*args)
     Thread.current[:view_template].image_submit(self, *args)
   end
   
-  def label(*args)
+  # See Mack::ViewHelpers::FormHelpers label_tag for more information
+  def label_tag(*args)
     Thread.current[:view_template].label(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers password_field for more information
+  # 
+  # Examples:
+  #   @user = User.new(:email =&gt; &quot;mark@mackframework.com&quot;)
+  #   &lt;%= :user.password_field :email %&gt; # =&gt; &lt;input id=&quot;user_email&quot; name=&quot;user[email]&quot; type=&quot;password&quot; value=&quot;mark@mackframework.com&quot; /&gt;
+  #   &lt;%= :i_dont_exist.password_field %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;password&quot; /&gt;
+  def password_field(*args)
+    Thread.current[:view_template].password_field(self, *args)
+  end
+  
+  # See Mack::ViewHelpers::FormHelpers radio_button for more information
   def radio_button(*args)
     Thread.current[:view_template].radio_button(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers select for more information
   def select(*args)
     Thread.current[:view_template].select(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers submit for more information
   def submit(*args)
     Thread.current[:view_template].submit(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers text_area for more information
   def text_area(*args)
     Thread.current[:view_template].text_area(self, *args)
   end
   
+  # See Mack::ViewHelpers::FormHelpers text_field for more information
+  # 
+  # Examples:
+  #   @user = User.new(:email =&gt; &quot;mark@mackframework.com&quot;)
+  #   &lt;%= :user.text_field :email %&gt; # =&gt; &lt;input id=&quot;user_email&quot; name=&quot;user[email]&quot; type=&quot;text&quot; value=&quot;mark@mackframework.com&quot; /&gt;
+  #   &lt;%= :i_dont_exist.text_field %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;text&quot; /&gt;
   def text_field(*args)
     Thread.current[:view_template].text_field(self, *args)
   end</diff>
      <filename>lib/mack/core_extensions/symbol.rb</filename>
    </modified>
    <modified>
      <diff>@@ -54,7 +54,7 @@ module Mack
         non_content_tag(:input, {:type =&gt; :image, :src =&gt; &quot;/images/#{src}&quot;}.merge(options))
       end
 
-      def label(name, *args)
+      def label_tag(name, *args)
         fe = FormElement.new(*args)
         unless fe.options[:for]
           fe.options[:for] = (fe.calling_method == :to_s ? name.to_s : &quot;#{name}_#{fe.calling_method}&quot;)
@@ -101,7 +101,8 @@ module Mack
           sel_value = var.send(fe.calling_method) if var
           sel_value = fe.options[:selected] if fe.options[:selected]
           sopts.each do |kv|
-            content &lt;&lt; %{&lt;option value=&quot;#{kv[1]}&quot; #{kv[1].to_s == sel_value.to_s ? &quot;selected&quot; : &quot;&quot;}&gt;#{kv[0]}&lt;/option&gt;}
+            selected = kv[1].to_s == sel_value.to_s ? &quot;selected&quot; : &quot;&quot;
+            content &lt;&lt; %{&lt;option value=&quot;#{kv[1]}&quot; #{selected}&gt;#{kv[0]}&lt;/option&gt;}
           end
           fe.options.delete(:selected)
           fe.options.delete(:options)</diff>
      <filename>lib/mack/view_helpers/form_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -120,30 +120,30 @@ describe Mack::ViewHelpers::FormHelpers do
     
   end
   
-  describe &quot;label&quot; do
+  describe &quot;label_tag&quot; do
     
     it &quot;should create a nested label for a model&quot; do
-      label(:cop, :full_name).should == %{&lt;label for=&quot;cop_full_name&quot;&gt;Full name&lt;/label&gt;}
+      label_tag(:cop, :full_name).should == %{&lt;label for=&quot;cop_full_name&quot;&gt;Full name&lt;/label&gt;}
     end
     
     it &quot;should create a non-nested label for a simple object&quot; do
-      label(:simple).should == %{&lt;label for=&quot;simple&quot;&gt;Simple&lt;/label&gt;}
+      label_tag(:simple).should == %{&lt;label for=&quot;simple&quot;&gt;Simple&lt;/label&gt;}
     end
     
     it &quot;should create a non-nested label for just a symbol&quot; do
-      label(:unknown).should == %{&lt;label for=&quot;unknown&quot;&gt;Unknown&lt;/label&gt;}
+      label_tag(:unknown).should == %{&lt;label for=&quot;unknown&quot;&gt;Unknown&lt;/label&gt;}
     end
     
     it &quot;should create a non-nested label for just a symbol&quot; do
-      label(:unknown).should == %{&lt;label for=&quot;unknown&quot;&gt;Unknown&lt;/label&gt;}
+      label_tag(:unknown).should == %{&lt;label for=&quot;unknown&quot;&gt;Unknown&lt;/label&gt;}
     end
     
     it &quot;should create a non-nested label and use :value for it's content&quot; do
-      label(:unknown, :value =&gt; &quot;My Label&quot;).should == %{&lt;label for=&quot;unknown&quot;&gt;My Label&lt;/label&gt;}
+      label_tag(:unknown, :value =&gt; &quot;My Label&quot;).should == %{&lt;label for=&quot;unknown&quot;&gt;My Label&lt;/label&gt;}
     end
     
     it &quot;should create a non-nested label and use :for for it's for&quot; do
-      label(:unknown, :for =&gt; &quot;my_label&quot;).should == %{&lt;label for=&quot;my_label&quot;&gt;Unknown&lt;/label&gt;}
+      label_tag(:unknown, :for =&gt; &quot;my_label&quot;).should == %{&lt;label for=&quot;my_label&quot;&gt;Unknown&lt;/label&gt;}
     end
     
   end</diff>
      <filename>test/unit/view_helpers/form_helpers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>620bd22da9f75b782db693879b8b654bb4587ab2</id>
    </parent>
  </parents>
  <author>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </author>
  <url>http://github.com/markbates/mack/commit/53d126e181ab37c249b472a28201e0b3cf033db8</url>
  <id>53d126e181ab37c249b472a28201e0b3cf033db8</id>
  <committed-date>2008-08-14T12:37:41-07:00</committed-date>
  <authored-date>2008-08-14T12:37:41-07:00</authored-date>
  <message>Adding rdoc for html form helpers.[#19]</message>
  <tree>079bab406c00f24547708fea5cc27cdb1a5a721e</tree>
  <committer>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </committer>
</commit>
