<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,7 +29,7 @@
     end
 
     @resource_generator = &quot;rspec_haml_scaffold&quot;
-    @default_file_extension = &quot;haml&quot;
+    @default_file_extension = &quot;html.haml&quot;
     @resource_edit_path = &quot;/edit&quot;
     
 
@@ -174,14 +174,13 @@
         end
       end
     end
-        
     
     def gsub_file(relative_destination, regexp, *args, &amp;block)
       path = destination_path(relative_destination)
       content = File.read(path).gsub(regexp, *args, &amp;block)
       File.open(path, 'wb') { |file| file.write(content) }
     end
-              
+
 end
 
 module Rails
@@ -199,14 +198,14 @@ module Rails
           when :boolean                     then &quot;false&quot;
           else
             &quot;&quot;
-        end      
+        end
       end
 
       def input_type
         @input_type ||= case type
-          when :text                        then &quot;textarea&quot;
-          else
-            &quot;input&quot;
+        when :text                        then &quot;textarea&quot;
+        else
+          &quot;input&quot;
         end      
       end
     end</diff>
      <filename>generators/rspec_haml_scaffold/rspec_haml_scaffold_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,17 +2,17 @@
 
 %table
   %tr
-&lt;% for attribute in attributes -%&gt;
+  &lt;%- attributes.each do |attribute| %&gt;
     %th &lt;%=attribute.column.human_name%&gt;
-&lt;% end -%&gt;
+  &lt;% end -%&gt;
 
-- for &lt;%= singular_name %&gt; in @&lt;%= plural_name %&gt;
+- @&lt;%= plural_name %&gt;.each do |&lt;%= singular_name %&gt;|
   %tr
-  &lt;% for attribute in attributes -%&gt;
+  &lt;%- for attribute in attributes -%&gt;
     %td=h &lt;%= singular_name %&gt;.&lt;%= attribute.name %&gt;
   &lt;% end %&gt;
     %td= link_to 'Show', &lt;%= path_for(table_name, singular_name, &quot;show&quot;).gsub(/@/, &quot;&quot;) %&gt;
     %td= link_to 'Edit', &lt;%= path_for(table_name, singular_name, &quot;edit&quot;).gsub(/@/, &quot;&quot;) %&gt;
     %td= link_to 'Destroy', &lt;%= path_for(table_name, singular_name, &quot;destroy&quot;).gsub(/@/, &quot;&quot;) %&gt;, :confirm =&gt; &quot;Are you sure?&quot;, :method =&gt; :delete
     
-= link_to 'New &lt;%= singular_name.singularize %&gt;', new_&lt;%= table_name.singularize %&gt;_path 
\ No newline at end of file
+= link_to 'New &lt;%= singular_name.singularize %&gt;', new_&lt;%= table_name.singularize %&gt;_path</diff>
      <filename>generators/rspec_haml_scaffold/templates/view_index_haml.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d289aaafba9d9a01a4a7e20da3480cdcd5764b31</id>
    </parent>
  </parents>
  <author>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </author>
  <url>http://github.com/zachinglis/rspec-haml-scaffold-generator/commit/8691f267c090891d33334f4d1684153e6efeefe4</url>
  <id>8691f267c090891d33334f4d1684153e6efeefe4</id>
  <committed-date>2009-05-06T18:55:24-07:00</committed-date>
  <authored-date>2009-05-06T18:55:24-07:00</authored-date>
  <message>Minor refactor</message>
  <tree>a995da0efc4adc230f9b4b4cab74caf0e70f5e43</tree>
  <committer>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </committer>
</commit>
