<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -55,23 +55,31 @@ class Symbol
   # 
   # Examples:
   #   @user = User.new(:level =&gt; 1)
-  #   &lt;%= :user.radio_button :level %&gt; # =&gt; &lt;input checked=&quot;checked&quot; id=&quot;user_level&quot; name=&quot;user[level]&quot; type=&quot;radio&quot; /&gt;
-  #   &lt;%= :i_dont_exist.radio_button %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;radio&quot; /&gt;
+  #   &lt;%= :user.radio_button :level %&gt; # =&gt; &lt;input checked=&quot;checked&quot; id=&quot;user_level&quot; name=&quot;user[level]&quot; type=&quot;radio&quot; value=&quot;1&quot; /&gt;
+  #   &lt;%= :user.radio_button :level, :value =&gt; 2 %&gt; # =&gt; &lt;input id=&quot;user_level&quot; name=&quot;user[level]&quot; type=&quot;radio&quot; value=&quot;2&quot; /&gt;
+  #   &lt;%= :i_dont_exist.radio_button %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;radio&quot; value=&quot;&quot; /&gt;
   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)
+  # See Mack::ViewHelpers::FormHelpers select_tag for more information
+  # 
+  # Examples:
+  #   @user = User.new(:level =&gt; 1)
+  #   &lt;%= :user.select_tag :level, :options =&gt; [[&quot;one&quot;, 1], [&quot;two&quot;, 2]] %&gt; # =&gt; &lt;select id=&quot;user_level&quot; name=&quot;user[level]&quot;&gt;&lt;option value=&quot;1&quot; selected&gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;/select&gt;
+  #   &lt;%= :user.select_tag :level, :options =&gt; {:one =&gt; 1, :two =&gt; 2} %&gt; # =&gt; &lt;select id=&quot;user_level&quot; name=&quot;user[level]&quot;&gt;&lt;option value=&quot;1&quot; selected&gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;/select&gt;
+  #   &lt;%= :i_dont_exist.select_tag :options =&gt; [[&quot;one&quot;, 1], [&quot;two&quot;, 2]], :selected =&gt; 1 %&gt; # =&gt; &lt;select id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot;&gt;&lt;option value=&quot;1&quot; selected&gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;/select&gt;
+  def select_tag(*args)
+    Thread.current[:view_template].select_tag(self, *args)
   end
   
   # See Mack::ViewHelpers::FormHelpers text_area for more information
+  # 
+  # Examples:
+  #   @user = User.new(:bio =&gt; &quot;my bio here&quot;)
+  #   &lt;%= :user.text_area :bio %&gt; # =&gt; &lt;textarea id=&quot;user_bio&quot; name=&quot;user[bio]&quot;&gt;my bio here&lt;/textarea&gt;
+  #   &lt;%= :i_dont_exist.text_area %&gt; # =&gt; &lt;textarea id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot;&gt;&lt;/textarea&gt;
+  #   &lt;%= :i_dont_exist.text_area :value =&gt; &quot;hi there&quot; %&gt; # =&gt; &lt;textarea id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot;&gt;hi there&lt;/textarea&gt;
   def text_area(*args)
     Thread.current[:view_template].text_area(self, *args)
   end</diff>
      <filename>lib/mack/core_extensions/symbol.rb</filename>
    </modified>
    <modified>
      <diff>@@ -24,12 +24,14 @@ module Mack
       end
       
       def submit_tag(value = &quot;Submit&quot;, options = {}, *original_args)
-        Mack.logger.warn(&quot;DEPRECATED: 'submit_tag'. Please use 'submit' instead&quot;)
-        submit(value, options, *original_args)
+        Mack.logger.warn(&quot;DEPRECATED: 'submit_tag'. Please use 'submit_button' instead&quot;)
+        submit_button(value, options, *original_args)
       end
       
-      # Builds an HTML submit tag
-      def submit(value = &quot;Submit&quot;, options = {}, *original_args)
+      # Examples:
+      #   &lt;%= submit_button %&gt; # =&gt; &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
+      #   &lt;%= submit_button &quot;Login&quot; %&gt; # =&gt; &lt;input type=&quot;submit&quot; value=&quot;Login&quot; /&gt;
+      def submit_button(value = &quot;Submit&quot;, options = {}, *original_args)
         non_content_tag(:input, {:type =&gt; :submit, :value =&gt; value}.merge(options))
       end
       
@@ -67,7 +69,7 @@ module Mack
         content_tag(:label, fe.options, content)
       end
 
-      def select(name, *args)
+      def select_tag(name, *args)
         var = instance_variable_get(&quot;@#{name}&quot;)
         fe = FormElement.new(*args)
         options = {:name =&gt; name, :id =&gt; name}
@@ -107,7 +109,9 @@ module Mack
         fe = FormElement.new(*args)
         options = {:name =&gt; name, :id =&gt; name}
         if var.nil?
-          return content_tag(:textarea, options.merge(fe.options))
+          value = fe.options[:value]
+          fe.options.delete(:value)
+          return content_tag(:textarea, options.merge(fe.options), value)
         else
           unless fe.calling_method == :to_s
             options.merge!(:name =&gt; &quot;#{name}[#{fe.calling_method}]&quot;, :id =&gt; &quot;#{name}_#{fe.calling_method}&quot;)</diff>
      <filename>lib/mack/view_helpers/form_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -168,30 +168,30 @@ describe Mack::ViewHelpers::FormHelpers do
     
   end
   
-  describe &quot;select&quot; do
+  describe &quot;select_tag&quot; do
     
     it &quot;should create a nested select tag for a model&quot; do
-      select(:cop, :level).should == %{&lt;select id=&quot;cop_level&quot; name=&quot;cop[level]&quot;&gt;&lt;/select&gt;}
+      select_tag(:cop, :level).should == %{&lt;select id=&quot;cop_level&quot; name=&quot;cop[level]&quot;&gt;&lt;/select&gt;}
     end
     
     it &quot;should create a non-nested select tag for a simple model&quot; do
-      select(:simple).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;/select&gt;}
+      select_tag(:simple).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;/select&gt;}
     end
     
     it &quot;should build the options from a given array of arrays&quot; do
-      select(:simple, :options =&gt; @select_options).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;option value=&quot;1&quot; &gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;/select&gt;}
+      select_tag(:simple, :options =&gt; @select_options).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;option value=&quot;1&quot; &gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;/select&gt;}
     end
     
     it &quot;should build the options from a given hash&quot; do
-      select(:simple, :options =&gt; {&quot;one&quot; =&gt; 1, &quot;two&quot; =&gt; 2, &quot;three&quot; =&gt; 3}).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;option value=&quot;1&quot; &gt;one&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;/select&gt;}
+      select_tag(:simple, :options =&gt; {&quot;one&quot; =&gt; 1, &quot;two&quot; =&gt; 2, &quot;three&quot; =&gt; 3}).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;option value=&quot;1&quot; &gt;one&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;/select&gt;}
     end
     
     it &quot;should mark an option as selected if the model has it seleceted&quot; do
-      select(:cop, :level, :options =&gt; @select_options).should == %{&lt;select id=&quot;cop_level&quot; name=&quot;cop[level]&quot;&gt;&lt;option value=&quot;1&quot; selected&gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;/select&gt;}
+      select_tag(:cop, :level, :options =&gt; @select_options).should == %{&lt;select id=&quot;cop_level&quot; name=&quot;cop[level]&quot;&gt;&lt;option value=&quot;1&quot; selected&gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;/select&gt;}
     end
     
     it &quot;should mark an option as selected if the selected options is available&quot; do
-      select(:simple, :options =&gt; @select_options, :selected =&gt; 1).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;option value=&quot;1&quot; selected&gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;/select&gt;}
+      select_tag(:simple, :options =&gt; @select_options, :selected =&gt; 1).should == %{&lt;select id=&quot;simple&quot; name=&quot;simple&quot;&gt;&lt;option value=&quot;1&quot; selected&gt;one&lt;/option&gt;&lt;option value=&quot;2&quot; &gt;two&lt;/option&gt;&lt;option value=&quot;3&quot; &gt;three&lt;/option&gt;&lt;/select&gt;}
     end
     
   end
@@ -208,6 +208,7 @@ describe Mack::ViewHelpers::FormHelpers do
     
     it &quot;should create a non-nested text_area for just a symbol&quot; do
       text_area(:unknown).should == %{&lt;textarea id=&quot;unknown&quot; name=&quot;unknown&quot;&gt;&lt;/textarea&gt;}
+      text_area(:unknown, :value =&gt; &quot;hi there&quot;).should == %{&lt;textarea id=&quot;unknown&quot; name=&quot;unknown&quot;&gt;hi there&lt;/textarea&gt;}
     end
 
     it &quot;should create a nested text_area for a model with an empty value if value is false&quot; do
@@ -278,18 +279,18 @@ Hello
     
   end
   
-  describe &quot;submit&quot; do
+  describe &quot;submit_button&quot; do
     
     it &quot;should build a simple submit tag&quot; do
-      submit.should == %{&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;}
+      submit_button.should == %{&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;}
     end
     
     it &quot;should allow you to change the value&quot; do
-      submit(&quot;Login&quot;).should == %{&lt;input type=&quot;submit&quot; value=&quot;Login&quot; /&gt;}
+      submit_button(&quot;Login&quot;).should == %{&lt;input type=&quot;submit&quot; value=&quot;Login&quot; /&gt;}
     end
     
     it &quot;should take options&quot; do
-      submit(&quot;Login&quot;, {:class =&gt; :foo}).should == %{&lt;input class=&quot;foo&quot; type=&quot;submit&quot; value=&quot;Login&quot; /&gt;}
+      submit_button(&quot;Login&quot;, {:class =&gt; :foo}).should == %{&lt;input class=&quot;foo&quot; type=&quot;submit&quot; value=&quot;Login&quot; /&gt;}
     end
     
   end</diff>
      <filename>test/unit/view_helpers/form_helpers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d83e931e8bd246ca664547f181fdc30c516d56c4</id>
    </parent>
  </parents>
  <author>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </author>
  <url>http://github.com/markbates/mack/commit/7201f443900acb6f7e010d1aa6df4766416a5fd5</url>
  <id>7201f443900acb6f7e010d1aa6df4766416a5fd5</id>
  <committed-date>2008-08-14T13:38:29-07:00</committed-date>
  <authored-date>2008-08-14T13:38:29-07:00</authored-date>
  <message>Added some more rdoc and fixed a bug or two with html form helpers. [#19]</message>
  <tree>c1315ee82dafe9cedaf5245a4e5afc49b5059ee7</tree>
  <committer>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </committer>
</commit>
