<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,60 +14,60 @@ A Rails plugin which provides a hook to preview and map the fields of an uploade
 
 == SYNOPSIS:
 
-  ===Lists controller
-    class ListsController &lt; AppliactionController
-      map_fields :create, ['Title', 'First name', 'Last name'], :file_field =&gt; :file, :params =&gt; [:list]
+===Lists controller
+  class ListsController &lt; AppliactionController
+    map_fields :create, ['Title', 'First name', 'Last name'], :file_field =&gt; :file, :params =&gt; [:list]
 
-      def index
-        @lists = List.find(:all)
-      end
+    def index
+      @lists = List.find(:all)
+    end
 
-      def new
-        @list = List.new
-      end
+    def new
+      @list = List.new
+    end
 
-      def create
-        @list = List.new(params[:list])
-        if fields_mapped?
-          mapped_fields.each do |row|
-            @list.contact.create(:title =&gt; row[0], 
-                                 :first_name =&gt; row[1], 
-                                 :last_name =&gt; row[2])
-          end
-          flash[:notice] = 'Contact list created'
-          redirect_to :action =&gt; :index
-        else
-          render
+    def create
+      @list = List.new(params[:list])
+      if fields_mapped?
+        mapped_fields.each do |row|
+          @list.contact.create(:title =&gt; row[0], 
+                               :first_name =&gt; row[1], 
+                               :last_name =&gt; row[2])
         end
-      rescue MapFields::InconsistentStateError
-        flash[:error] = 'Please try again'
-        redirect_to :action =&gt; :new
-      rescue MapFields::MissingFileContentsError
-        flash[:error] = 'Please upload a file'
-        redirect_to :action =&gt; :new
+        flash[:notice] = 'Contact list created'
+        redirect_to :action =&gt; :index
+      else
+        render
       end
+    rescue MapFields::InconsistentStateError
+      flash[:error] = 'Please try again'
+      redirect_to :action =&gt; :new
+    rescue MapFields::MissingFileContentsError
+      flash[:error] = 'Please upload a file'
+      redirect_to :action =&gt; :new
     end
-
-  ===New view (new.html.erb)
-    &lt;h1&gt;Import a new List&lt;/h1&gt;
-    &lt;% form_for :list, :html =&gt; {:multipart =&gt; true} do |form| %&gt;
-      &lt;div class=&quot;field&quot;&gt;
-        &lt;%= form.label :name %&gt;
-        &lt;%= form.text_field :name %&gt;
-      &lt;/div&gt;
-      &lt;div class=&quot;field&quot;&gt;
-        &lt;label for=&quot;file&quot;&gt;File&lt;/label&gt;
-        &lt;%= file_field_tag 'file' %&gt;
-      &lt;/div&gt;
-      &lt;div class=&quot;buttons&quot;&gt;
-        &lt;%= form.submit 'Import' %&gt;
-      &lt;/div&gt;
-    &lt;% end %&gt;
-
-  ===Create view (create.html.erb)
-    &lt;h1&gt;Import a new List&lt;/h1&gt;
-    &lt;p&gt;Please map the details you're importing&lt;/p&gt;
-    =render :partial =&gt; 'map_fields/map_fields'
+  end
+
+===New view (new.html.erb)
+  &lt;h1&gt;Import a new List&lt;/h1&gt;
+  &lt;% form_for :list, :html =&gt; {:multipart =&gt; true} do |form| %&gt;
+    &lt;div class=&quot;field&quot;&gt;
+      &lt;%= form.label :name %&gt;
+      &lt;%= form.text_field :name %&gt;
+    &lt;/div&gt;
+    &lt;div class=&quot;field&quot;&gt;
+      &lt;label for=&quot;file&quot;&gt;File&lt;/label&gt;
+      &lt;%= file_field_tag 'file' %&gt;
+    &lt;/div&gt;
+    &lt;div class=&quot;buttons&quot;&gt;
+      &lt;%= form.submit 'Import' %&gt;
+    &lt;/div&gt;
+  &lt;% end %&gt;
+
+===Create view (create.html.erb)
+  &lt;h1&gt;Import a new List&lt;/h1&gt;
+  &lt;p&gt;Please map the details you're importing&lt;/p&gt;
+  =render :partial =&gt; 'map_fields/map_fields'
 
 == REQUIREMENTS:
 </diff>
      <filename>README.rdoc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1d8face417ca0a785d74b10c267680b67940c025</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Timberlake</name>
    <email>andrew@andrewtimberlake.com</email>
  </author>
  <url>http://github.com/internuity/map-fields/commit/502d1160754c4d7847d017a2b0cd23fa4f00cb0f</url>
  <id>502d1160754c4d7847d017a2b0cd23fa4f00cb0f</id>
  <committed-date>2009-06-02T11:27:28-07:00</committed-date>
  <authored-date>2009-06-02T11:27:28-07:00</authored-date>
  <message>Fixing README</message>
  <tree>5149f3ce5440cdf3125e1d1d3bd07538e4d39309</tree>
  <committer>
    <name>Andrew Timberlake</name>
    <email>andrew@andrewtimberlake.com</email>
  </committer>
</commit>
