<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,4 +5,23 @@ module Kernel
     yield Mack::Utils::GemManager.instance
   end
   
+  def alias_deprecated_method(deprecated_method, new_method, version_deprecrated = nil, version_to_be_removed = nil) # :nodoc:
+    message = &quot;DEPRECATED: '#{deprecated_method}'. Please use '#{new_method}' instead.&quot;
+    if version_deprecrated
+      message &lt;&lt; &quot; Deprecated in version: '#{version_deprecrated}'.&quot;
+      if version_to_be_removed.nil?
+        version_to_be_removed = &quot;&gt;=#{version_deprecrated.succ}&quot;
+      end
+    end
+    if version_to_be_removed
+      message &lt;&lt; &quot; To be removed in version: '#{version_to_be_removed}'.&quot;
+    end
+    eval %{
+      def #{deprecated_method}(*args)
+        Mack.logger.warn(&quot;#{message}&quot;)
+        #{new_method}(*args)
+      end
+    }
+  end
+  
 end
\ No newline at end of file</diff>
      <filename>lib/mack/core_extensions/kernel.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ class Symbol
   # 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;
+  #   &lt;%= :i_dont_exist.check_box %&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</diff>
      <filename>lib/mack/core_extensions/symbol.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,18 @@ module Mack
   module ViewHelpers # :nodoc:
     module FormHelpers
       
+      # Examples:
+      #   &lt;% form(users_create_url) do -%&gt;
+      #     # form stuff here...
+      #   &lt;% end -%&gt;
+      # 
+      #   &lt;% form(users_update_url, :method =&gt; :put) do -%&gt;
+      #     # form stuff here...
+      #   &lt;% end -%&gt;
+      # 
+      #   &lt;% form(photos_create_url, :multipart =&gt; true) do -%&gt;
+      #     # form stuff here...
+      #   &lt;% end -%&gt;
       def form(action, options = {}, &amp;block)
         options = {:method =&gt; :post, :action =&gt; action}.merge(options)
         if options[:id]
@@ -23,10 +35,7 @@ module Mack
         # content_tag(:form, options, &amp;block)
       end
       
-      def submit_tag(value = &quot;Submit&quot;, options = {}, *original_args)
-        Mack.logger.warn(&quot;DEPRECATED: 'submit_tag'. Please use 'submit_button' instead&quot;)
-        submit_button(value, options, *original_args)
-      end
+      alias_deprecated_method :submit_tag, :submit_button, '0.7.0'
       
       # Examples:
       #   &lt;%= submit_button %&gt; # =&gt; &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
@@ -35,6 +44,10 @@ module Mack
         non_content_tag(:input, {:type =&gt; :submit, :value =&gt; value}.merge(options))
       end
       
+      # Examples:
+      #   @user = User.new(:accepted_tos =&gt; true)
+      #   &lt;%= check_box :user, :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;%= check_box :i_dont_exist %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;checkbox&quot; /&gt;
       def check_box(name, *args)
         build_form_element(name, {:type =&gt; :checkbox}, *args) do |var, fe, options|
           if options[:value]
@@ -43,19 +56,34 @@ module Mack
           options.delete(:value)
         end
       end
-
+      
+      # Examples:
+      #   @user = User.new(:bio_file =&gt; &quot;~/bio.doc&quot;)
+      #   &lt;%= file_field :user, :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;%= file_field :i_dont_exist %&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(name, *args)
         build_form_element(name, {:type =&gt; :file}, *args)
       end
 
+      # Examples:
+      #   @user = User.new(:email =&gt; &quot;mark@mackframework.com&quot;)
+      #   &lt;%= hidden_field :user, :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;%= hidden_field :i_dont_exist %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;hidden&quot; /&gt;
       def hidden_field(name, *args)
         build_form_element(name, {:type =&gt; :hidden}, *args)
       end
-
+      
+      # Examples:
+      #   &lt;%= image_submit &quot;logo.png&quot; %&gt; # =&gt; &lt;input src=&quot;/images/logo.png&quot; type=&quot;image&quot; /&gt;
       def image_submit(src, options = {})
         non_content_tag(:input, {:type =&gt; :image, :src =&gt; &quot;/images/#{src}&quot;}.merge(options))
       end
 
+      # Examples:
+      #   @user = User.new
+      #   &lt;%= label_tag :user, :email %&gt; # =&gt; &lt;label for=&quot;user_email&quot;&gt;Email&lt;/label&gt;
+      #   &lt;%= label_tag :i_dont_exist %&gt; # =&gt; &lt;label for=&quot;i_dont_exist&quot;&gt;I don't exist&lt;/label&gt;
+      #   &lt;%= label_tag :i_dont_exist, :value =&gt; &quot;Hello&quot; %&gt; # =&gt; &lt;label for=&quot;i_dont_exist&quot;&gt;Hello&lt;/label&gt;
       def label_tag(name, *args)
         fe = FormElement.new(*args)
         unless fe.options[:for]
@@ -69,6 +97,11 @@ module Mack
         content_tag(:label, fe.options, content)
       end
 
+      # Examples:
+      #   @user = User.new(:level =&gt; 1)
+      #   &lt;%= select_tag :user, :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;%= select_tag :user :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;%= select_tag :i_dont_exist :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(name, *args)
         var = instance_variable_get(&quot;@#{name}&quot;)
         fe = FormElement.new(*args)
@@ -103,7 +136,12 @@ module Mack
         
         return content_tag(:select, options.merge(fe.options), content)
       end
-
+      
+      # Examples:
+      #   @user = User.new(:bio =&gt; &quot;my bio here&quot;)
+      #   &lt;%= text_area :user, :bio %&gt; # =&gt; &lt;textarea id=&quot;user_bio&quot; name=&quot;user[bio]&quot;&gt;my bio here&lt;/textarea&gt;
+      #   &lt;%= text_area :i_dont_exist %&gt; # =&gt; &lt;textarea id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot;&gt;&lt;/textarea&gt;
+      #   &lt;%= text_area :i_dont_exist :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(name, *args)
         var = instance_variable_get(&quot;@#{name}&quot;)
         fe = FormElement.new(*args)
@@ -126,15 +164,28 @@ module Mack
           return content_tag(:textarea, options.merge(fe.options), content)
         end
       end
-
+      
+      # Examples:
+      #   @user = User.new(:email =&gt; &quot;mark@mackframework.com&quot;)
+      #   &lt;%= text_field :user, :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;%= text_field :i_dont_exist %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;text&quot; /&gt;
       def text_field(name, *args)
         build_form_element(name, {:type =&gt; :text}, *args)
       end
       
+      # Examples:
+      #   @user = User.new(:email =&gt; &quot;mark@mackframework.com&quot;)
+      #   &lt;%= password_field :user, :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;%= password_field :i_dont_exist %&gt; # =&gt; &lt;input id=&quot;i_dont_exist&quot; name=&quot;i_dont_exist&quot; type=&quot;password&quot; /&gt;
       def password_field(name, *args)
         build_form_element(name, {:type =&gt; :password}, *args)
       end
       
+      # Examples:
+      #   @user = User.new(:level =&gt; 1)
+      #   &lt;%= radio_button :user, :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;%= radio_button :user, :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;%= radio_button :i_dont_exist %&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(name, *args)
         build_form_element(name, {:type =&gt; :radio, :value =&gt; &quot;&quot;}, *args) do |var, fe, options|
           if fe.options[:value]
@@ -148,7 +199,7 @@ module Mack
       end
       
       private
-      def build_form_element(name, options, *original_args)
+      def build_form_element(name, options, *original_args) # :nodoc:
         var = instance_variable_get(&quot;@#{name}&quot;)
         fe = FormElement.new(*original_args)
         options = {:name =&gt; name, :id =&gt; name}.merge(options)
@@ -166,7 +217,7 @@ module Mack
         end
       end
       
-      class FormElement
+      class FormElement # :nodoc:
 
         attr_accessor :calling_method
         attr_accessor :options</diff>
      <filename>lib/mack/view_helpers/form_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7201f443900acb6f7e010d1aa6df4766416a5fd5</id>
    </parent>
  </parents>
  <author>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </author>
  <url>http://github.com/markbates/mack/commit/da506c7eae535567f53b14254a8449e796d956f1</url>
  <id>da506c7eae535567f53b14254a8449e796d956f1</id>
  <committed-date>2008-08-14T14:33:21-07:00</committed-date>
  <authored-date>2008-08-14T14:33:21-07:00</authored-date>
  <message>Added alias_deprecated_method. More rdoc for form helpers. [#19]</message>
  <tree>fca91476393fdee62cc14354c41bd94afe0a35c2</tree>
  <committer>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </committer>
</commit>
