<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,10 +9,10 @@ if Mack.env == &quot;test&quot;
 
   # Wrap it so we don't accidentally alias the run method n times and run out of db connections!
   unless Mack::Testing.const_defined?(&quot;AR_TEST_EXTENSIONS&quot;)     
-    AR_TEST_EXTENSIONS = 1
     
     module Mack
       module Testing
+        AR_TEST_EXTENSIONS = 1
         # module Helpers
         #   alias_method :mack_rake_task, :rake_task
         # </diff>
      <filename>mack-active_record/lib/mack-active_record/test_extensions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,5 @@
 whiny_config_missing: false
 
 mack::session_id: _fake_application_session_id
-
-orm: active_record
 mack::testing_framework: test_case
 disable_transactional_tests: true
\ No newline at end of file</diff>
      <filename>mack-active_record/spec/fake_application/config/app_config/default.yml</filename>
    </modified>
    <modified>
      <diff>@@ -10,3 +10,5 @@ require_gems do |gem|
   # gem.add :termios
   # gem.add :rubyzip, :source =&gt; &quot;http://gems.rubyforge.org&quot;
 end
+
+require 'mack-active_record'</diff>
      <filename>mack-active_record/spec/fake_application/config/initializers/gems.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,7 @@ migration 1, :create_zoos do
       column :id, Serial
       column :name, String
       column :description, Text
+      column :password, String
       column :created_at, DateTime
       column :updated_at, DateTime
     end</diff>
      <filename>mack-data_mapper/spec/fixtures/create_zoos.rb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@ class Zoo
   property :id, Serial
   property :name, String
   property :description, Text
+  property :password, String
   property :created_at, DateTime
   property :updated_at, DateTime
 end</diff>
      <filename>mack-data_mapper/spec/fixtures/zoo.rb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -4,15 +4,16 @@
 
 &lt;% form(zoos_update_url(:id =&gt; @zoo), :class =&gt; &quot;edit_zoo&quot;, :id =&gt; &quot;edit_zoo&quot;, :method =&gt; :put) do %&gt;
   &lt;p&gt;
-    &lt;b&gt;Name&lt;/b&gt;&lt;br /&gt;
-    &lt;%= model_text_field(@zoo, :name) %&gt;
+    &lt;%= :zoo.text_field :name, :label =&gt; true %&gt;
   &lt;/p&gt;
   &lt;p&gt;
-    &lt;b&gt;Description&lt;/b&gt;&lt;br /&gt;
-    &lt;%= model_textarea(@zoo, :description) %&gt;
+    &lt;%= :zoo.text_area :description, :label =&gt; true %&gt;
   &lt;/p&gt;
   &lt;p&gt;
-    &lt;%= submit_tag(&quot;Update&quot;) %&gt;
+    &lt;%= :zoo.password_field :password, :label =&gt; true %&gt;
+  &lt;/p&gt;
+  &lt;p&gt;
+    &lt;%= submit_button(&quot;Update&quot;) %&gt;
   &lt;/p&gt;
 &lt;% end %&gt;
 </diff>
      <filename>mack-data_mapper/spec/fixtures/zoo_edit.html.erb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -4,8 +4,8 @@
   &lt;tr&gt;
     &lt;th&gt;Name&lt;/th&gt;
     &lt;th&gt;Description&lt;/th&gt;
-    &lt;th&gt;CreatedAt&lt;/th&gt;
-    &lt;th&gt;UpdatedAt&lt;/th&gt;
+    &lt;th&gt;Created at&lt;/th&gt;
+    &lt;th&gt;Updated at&lt;/th&gt;
   &lt;/tr&gt;
 
 &lt;% for zoo in @zoos %&gt;</diff>
      <filename>mack-data_mapper/spec/fixtures/zoo_index.html.erb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -4,15 +4,16 @@
 
 &lt;% form(zoos_create_url, :class =&gt; &quot;new_zoo&quot;, :id =&gt; &quot;new_zoo&quot;) do %&gt;
   &lt;p&gt;
-    &lt;b&gt;Name&lt;/b&gt;&lt;br /&gt;
-    &lt;%= model_text_field(@zoo, :name) %&gt;
+    &lt;%= :zoo.text_field :name, :label =&gt; true %&gt;
   &lt;/p&gt;
   &lt;p&gt;
-    &lt;b&gt;Description&lt;/b&gt;&lt;br /&gt;
-    &lt;%= model_textarea(@zoo, :description) %&gt;
+    &lt;%= :zoo.text_area :description, :label =&gt; true %&gt;
   &lt;/p&gt;
   &lt;p&gt;
-    &lt;%= submit_tag(&quot;Create&quot;) %&gt;
+    &lt;%= :zoo.password_field :password, :label =&gt; true %&gt;
+  &lt;/p&gt;
+  &lt;p&gt;
+    &lt;%= submit_button(&quot;Create&quot;) %&gt;
   &lt;/p&gt;
 &lt;% end %&gt;
 </diff>
      <filename>mack-data_mapper/spec/fixtures/zoo_new.html.erb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -2,19 +2,19 @@
   &lt;h1&gt;Zoo&lt;/h1&gt;
 &lt;/p&gt;
 &lt;p&gt;
-  &lt;b&gt;Name&lt;/b&gt;&lt;br /&gt;
+  &lt;label for=&quot;zoo_name&quot;&gt;Name&lt;/label&gt;&lt;br /&gt;
   &lt;%= @zoo.name %&gt;
 &lt;/p&gt;
 &lt;p&gt;
-  &lt;b&gt;Description&lt;/b&gt;&lt;br /&gt;
+  &lt;label for=&quot;zoo_description&quot;&gt;Description&lt;/label&gt;&lt;br /&gt;
   &lt;%= @zoo.description %&gt;
 &lt;/p&gt;
 &lt;p&gt;
-  &lt;b&gt;CreatedAt&lt;/b&gt;&lt;br /&gt;
+  &lt;label for=&quot;zoo_created_at&quot;&gt;Created at&lt;/label&gt;&lt;br /&gt;
   &lt;%= @zoo.created_at %&gt;
 &lt;/p&gt;
 &lt;p&gt;
-  &lt;b&gt;UpdatedAt&lt;/b&gt;&lt;br /&gt;
+  &lt;label for=&quot;zoo_updated_at&quot;&gt;Updated at&lt;/label&gt;&lt;br /&gt;
   &lt;%= @zoo.updated_at %&gt;
 &lt;/p&gt;
 </diff>
      <filename>mack-data_mapper/spec/fixtures/zoo_show.html.erb.fixture</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@ describe MigrationGenerator do
   end
   
   it &quot;should create a 'full' migration file if columns are specified&quot; do
-    MigrationGenerator.run(&quot;NAME&quot; =&gt; &quot;create_zoos&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,created_at:date_time,updated_at:date_time&quot;)
+    MigrationGenerator.run(&quot;NAME&quot; =&gt; &quot;create_zoos&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,password:string,created_at:date_time,updated_at:date_time&quot;)
     File.read(@migration_file).should == fixture(&quot;create_zoos.rb&quot;)
   end
   </diff>
      <filename>mack-data_mapper/spec/lib/migration_generator_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,7 @@ describe ModelGenerator do
   
   it &quot;should create a full file for the model&quot; do
     File.should_not be_exists(@model_file)
-    ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,created_at:date_time,updated_at:date_time&quot;)
+    ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,password:string,created_at:date_time,updated_at:date_time&quot;)
     File.should be_exists(@model_file)
     File.read(@model_file).should == fixture(&quot;zoo.rb&quot;)
   end
@@ -38,7 +38,7 @@ describe ModelGenerator do
   it &quot;should create a stub test/unit test for the model if test/unit is testing framework&quot; do
     temp_app_config(&quot;mack::testing_framework&quot; =&gt; &quot;test_case&quot;) do
       File.should_not be_exist(Mack::Paths.model_tests(&quot;zoo_test.rb&quot;))
-      ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,created_at:date_time,updated_at:date_time&quot;)
+      ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,password:string,created_at:date_time,updated_at:date_time&quot;)
       File.should be_exist(Mack::Paths.model_tests(&quot;zoo_test.rb&quot;))
       File.read(Mack::Paths.model_tests(&quot;zoo_test.rb&quot;)).should == fixture(&quot;zoo_test.rb&quot;)
     end
@@ -47,7 +47,7 @@ describe ModelGenerator do
   it &quot;should create a stub rspec test for the model if rspec is testing framework&quot; do
     temp_app_config(&quot;mack::testing_framework&quot; =&gt; &quot;rspec&quot;) do
       File.should_not be_exist(Mack::Paths.model_tests(&quot;zoo_spec.rb&quot;))
-      ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,created_at:date_time,updated_at:date_time&quot;)
+      ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,password:string,created_at:date_time,updated_at:date_time&quot;)
       File.should be_exist(Mack::Paths.model_tests(&quot;zoo_spec.rb&quot;))
       File.read(Mack::Paths.model_tests(&quot;zoo_spec.rb&quot;)).should == fixture(&quot;zoo_spec.rb&quot;)
     end
@@ -56,7 +56,7 @@ describe ModelGenerator do
   it &quot;should create a migration file&quot; do
     mig_file = Mack::Paths.migrations(&quot;001_create_zoos.rb&quot;)
     File.should_not be_exists(mig_file)
-    ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,created_at:date_time,updated_at:date_time&quot;)
+    ModelGenerator.run(&quot;NAME&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,password:string,created_at:date_time,updated_at:date_time&quot;)
     File.should be_exists(mig_file)
   end
   </diff>
      <filename>mack-data_mapper/spec/lib/model_generator_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -105,7 +105,7 @@ describe ScaffoldGenerator do
   end
   
   def zoo_options
-    {&quot;name&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,created_at:date_time,updated_at:date_time&quot;}
+    {&quot;name&quot; =&gt; &quot;zoo&quot;, &quot;cols&quot; =&gt; &quot;name:string,description:text,password:string,created_at:date_time,updated_at:date_time&quot;}
   end
   
 end
\ No newline at end of file</diff>
      <filename>mack-data_mapper/spec/lib/scaffold_generator_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,15 +23,20 @@ module Mack
         # 
         # Examples:
         #   Mack::Generator::ColumnObject.new(&quot;user&quot;, &quot;username:string&quot;).form_field 
-        #     =&gt; &quot;&lt;%= model_text_field(@user, :username) %&gt;&quot;
+        #     =&gt; &quot;&lt;%= :user.text_field :username, :label =&gt; true %&gt;&quot;
         #   Mack::Generator::ColumnObject.new(&quot;Post&quot;, &quot;body:text&quot;).form_field
-        #     =&gt; &quot;&lt;%= model_textarea(@user, :username) %&gt;&quot;
+        #     =&gt; &quot;&lt;%= :post.text_area :body, :label =&gt; true %&gt;&quot;
         def form_field
           case self.column_type
           when &quot;text&quot;
-            %{&lt;%= model_textarea(@#{self.model_name}, :#{self.column_name}) %&gt;}
+            %{&lt;%= :#{self.model_name}.text_area :#{self.column_name}, :label =&gt; true %&gt;}
           else
-            %{&lt;%= model_text_field(@#{self.model_name}, :#{self.column_name}) %&gt;}
+            case self.column_name.downcase
+            when /password/
+              %{&lt;%= :#{self.model_name}.password_field :#{self.column_name}, :label =&gt; true %&gt;}
+            else
+              %{&lt;%= :#{self.model_name}.text_field :#{self.column_name}, :label =&gt; true %&gt;}
+            end
           end
         end
       </diff>
      <filename>mack-orm/lib/mack-orm/model_column.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,26 +2,25 @@ module Mack
   module ViewHelpers # :nodoc:
     module OrmHelpers
       
-      # Generates a text input tag for a given model and field
-      # 
-      # Example:
-      # model_text_field(@user, :username) # =&gt; &lt;input id=&quot;user_username&quot; name=&quot;user[username]&quot; type=&quot;text&quot; value=&quot;&lt;@user.username's value&gt;&quot; /&gt;
-      def model_text_field(model, property, options = {})
+      # DEPRECATED: Use Mack::ViewHelpers::FormHelpers text_field instead.
+      def model_text_field(model, property, options = {}) # :nodoc:
+        deprecate_method(:model_text_field, :text_field, '0.7.0')
         m_name = model.class.to_s.underscore
-        non_content_tag(:input, {:type =&gt; :text, :name =&gt; &quot;#{m_name}[#{property}]&quot;, :id =&gt; &quot;#{m_name}_#{property}&quot;, :value =&gt; model.send(property)}.merge(options))
+        text_field(model.class.to_s.underscore, property, options)
       end
       
-      # Generates a password input tag for a given model and field
-      # 
-      # Example:
-      # model_password_field(@user, :password) # =&gt; &lt;input id=&quot;user_username&quot; name=&quot;user[username]&quot; type=&quot;password&quot; value=&quot;&lt;@user.username's value&gt;&quot; /&gt;
-      def model_password_field(model, property, options = {})
-        model_text_field(model, property, {:type =&gt; :password}.merge(options))
+      # DEPRECATED: Use Mack::ViewHelpers::FormHelpers password_field instead.
+      def model_password_field(model, property, options = {}) # :nodoc:
+        deprecate_method(:model_password_field, :password_field, '0.7.0')
+        m_name = model.class.to_s.underscore
+        password_field(model.class.to_s.underscore, property, options)
       end
       
-      def model_textarea(model, property, options = {})
+      # DEPRECATED: Use Mack::ViewHelpers::FormHelpers text_area instead.
+      def model_textarea(model, property, options = {}) # :nodoc:
+        deprecate_method(:model_textarea, :text_area, '0.7.0')
         m_name = model.class.to_s.underscore
-        content_tag(:textarea, {:name =&gt; &quot;#{m_name}[#{property}]&quot;, :id =&gt; &quot;#{m_name}_#{property}&quot;, :cols =&gt; 60, :rows =&gt; 20}.merge(options), model.send(property))
+        text_area(model.class.to_s.underscore, property, options)
       end
       
     end # OrmHelpers</diff>
      <filename>mack-orm/lib/mack-orm/orm_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,11 @@ class ScaffoldGenerator &lt; Genosaurus
     update_routes_file
   end
   
+  def showable_columns
+    cols = columns.reject {|c| c.column_name.downcase.match(/password/)}
+    cols
+  end
+  
   def update_routes_file # :nodoc:
     # update routes.rb
     routes = File.join(Mack.root, &quot;config&quot;, &quot;routes.rb&quot;)</diff>
      <filename>mack-orm/lib/mack-orm/scaffold_generator/scaffold_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,13 +6,12 @@
 &lt;% for column in columns -%&gt;
 &lt;% unless column.column_name == &quot;created_at&quot; || column.column_name == &quot;updated_at&quot; -%&gt;
   &lt;p&gt;
-    &lt;b&gt;&lt;%= column.column_name.singular.camelcase %&gt;&lt;/b&gt;&lt;br /&gt;
     &lt;%= column.form_field %&gt;
   &lt;/p&gt;
 &lt;% end -%&gt;
 &lt;% end -%&gt;
   &lt;p&gt;
-    &lt;%%= submit_tag(&quot;Update&quot;) %&gt;
+    &lt;%%= submit_button(&quot;Update&quot;) %&gt;
   &lt;/p&gt;
 &lt;%% end %&gt;
 </diff>
      <filename>mack-orm/lib/mack-orm/scaffold_generator/templates/app/views/edit.html.erb.template</filename>
    </modified>
    <modified>
      <diff>@@ -3,10 +3,10 @@
 &lt;table&gt;
   &lt;tr&gt;
 &lt;% 
-unless columns.empty? 
-  columns.each do |col|
+unless showable_columns.empty? 
+  showable_columns.each do |col|
 -%&gt;
-    &lt;th&gt;&lt;%= col.column_name.camelcase %&gt;&lt;/th&gt;
+    &lt;th&gt;&lt;%= col.column_name.humanize %&gt;&lt;/th&gt;
 &lt;% 
   end
 else
@@ -20,8 +20,8 @@ end
 &lt;%% for &lt;%= @name_singular %&gt; in @&lt;%= @name_plural %&gt; %&gt;
   &lt;tr&gt;
 &lt;%
-unless columns.empty? 
-  columns.each do |col| -%&gt;
+unless showable_columns.empty? 
+  showable_columns.each do |col| -%&gt;
     &lt;td&gt;&lt;%%= &lt;%= @name_singular %&gt;.&lt;%= col.column_name %&gt; %&gt;&lt;/td&gt;
 &lt;%
   end</diff>
      <filename>mack-orm/lib/mack-orm/scaffold_generator/templates/app/views/index.html.erb.template</filename>
    </modified>
    <modified>
      <diff>@@ -6,13 +6,12 @@
 &lt;% for column in columns -%&gt;
 &lt;% unless column.column_name == &quot;created_at&quot; || column.column_name == &quot;updated_at&quot; -%&gt;
   &lt;p&gt;
-    &lt;b&gt;&lt;%= column.column_name.singular.camelcase %&gt;&lt;/b&gt;&lt;br /&gt;
     &lt;%= column.form_field %&gt;
   &lt;/p&gt;
 &lt;% end -%&gt;
 &lt;% end -%&gt;
   &lt;p&gt;
-    &lt;%%= submit_tag(&quot;Create&quot;) %&gt;
+    &lt;%%= submit_button(&quot;Create&quot;) %&gt;
   &lt;/p&gt;
 &lt;%% end %&gt;
 </diff>
      <filename>mack-orm/lib/mack-orm/scaffold_generator/templates/app/views/new.html.erb.template</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 &lt;p&gt;
   &lt;h1&gt;&lt;%= @name_singular_camel %&gt;&lt;/h1&gt;
 &lt;/p&gt;
-&lt;% for column in columns -%&gt;
+&lt;% for column in showable_columns -%&gt;
 &lt;p&gt;
-  &lt;b&gt;&lt;%= column.column_name.singular.camelcase %&gt;&lt;/b&gt;&lt;br /&gt;
+  &lt;label for=&quot;&lt;%= @name_singular %&gt;_&lt;%= column.column_name %&gt;&quot;&gt;&lt;%= column.column_name.singular.humanize %&gt;&lt;/label&gt;&lt;br /&gt;
   &lt;%%= @&lt;%= @name_singular %&gt;.&lt;%= column.column_name %&gt; %&gt;
 &lt;/p&gt;
 &lt;% end -%&gt;</diff>
      <filename>mack-orm/lib/mack-orm/scaffold_generator/templates/app/views/show.html.erb.template</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f6f5f93fef03bbb8f049d18327563774597c1ed2</id>
    </parent>
    <parent>
      <id>53617cb0e02a759436ea2b032269fa77486080f7</id>
    </parent>
  </parents>
  <author>
    <name>dsutedja</name>
    <email>dsutedja@helium.com</email>
  </author>
  <url>http://github.com/markbates/mack-more/commit/ba6ec235f36909f2a120ca10fdc8e093dcb1e62a</url>
  <id>ba6ec235f36909f2a120ca10fdc8e093dcb1e62a</id>
  <committed-date>2008-08-15T14:22:21-07:00</committed-date>
  <authored-date>2008-08-15T14:22:21-07:00</authored-date>
  <message>Merge branch 'master' of git@github.com:markbates/mack-more</message>
  <tree>1a0141d7e28187b234a47111da539a818de4ff25</tree>
  <committer>
    <name>dsutedja</name>
    <email>dsutedja@helium.com</email>
  </committer>
</commit>
