<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,7 +17,6 @@ class CustomersController &lt; ApplicationController
   #
   def new
     @subsection = &quot;customers_form&quot;    
-    @customer_url = {:url =&gt; customers_path}
     @customer = Customer.new
     
     flash[:notice] = &quot;&quot;
@@ -32,10 +31,9 @@ class CustomersController &lt; ApplicationController
     
     if @customer.save
       flash[:notice] = &quot;Cliente guardado correctamente&quot;
-      redirect_to customers_url
+      redirect_to customers_path
     else
       flash[:notice] = &quot;Se produjo un error al guardar el cliente.&quot;
-      @form_action = &quot;create&quot;
       render :action =&gt; &quot;customer_form&quot;
     end
   end
@@ -45,7 +43,6 @@ class CustomersController &lt; ApplicationController
   #
   def edit
     @customer = Customer.find(params[:id])
-    @customer_url = {:url =&gt; customer_path(params[:id]), :html =&gt; {:method =&gt; :put}}
     
     render :action =&gt; &quot;customer_form&quot;
   end
@@ -55,11 +52,10 @@ class CustomersController &lt; ApplicationController
   def update
     @subsection = &quot;customers_form&quot;    
     @customer = Customer.find(params[:customer][:id])
-    @customer_url = {:url =&gt; customer_path(params[:customer][:id]), :html =&gt; {:method =&gt; :put}}
     
     if @customer.update_attributes(params[:customer])
       flash[:notice] = &quot;Cliente guardado correctamente&quot;
-      redirect_to customers_url
+      redirect_to customers_path
     else
       flash[:notice] = &quot;Se produjo un error al guardar el cliente.&quot;
       render :action =&gt; &quot;customer_form&quot;
@@ -74,7 +70,7 @@ class CustomersController &lt; ApplicationController
     
     flash[:notice] = &quot;Cliente borrado.&quot;
     
-    redirect_to customers_url
+    redirect_to customers_path
     
     rescue ActiveRecord::ReferentialIntegrityProtectionError
     flash[:notice] = &quot;No se pudo borrar el cliente porque tiene facturas asociadas.&quot;</diff>
      <filename>app/controllers/customers_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;h3 class=&quot;flash&quot;&gt;&lt;%= flash[:notice] %&gt;&lt;/h3&gt;
 
-&lt;% form_for :customer, @customer_url do |form| %&gt;
+&lt;% form_for @customer do |form| %&gt;
 	&lt;fieldset&gt;
 		&lt;legend&gt;Editar cliente&lt;/legend&gt;
 		</diff>
      <filename>app/views/customers/customer_form.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -38,16 +38,13 @@ ActiveRecord::Schema.define(:version =&gt; 5) do
 
   create_table &quot;users&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
-    t.string   &quot;string&quot;
     t.string   &quot;address&quot;
-    t.string   &quot;text&quot;
     t.string   &quot;nif&quot;
     t.string   &quot;login&quot;
     t.string   &quot;email&quot;
     t.string   &quot;crypted_password&quot;,          :limit =&gt; 40
     t.string   &quot;salt&quot;,                      :limit =&gt; 40
     t.datetime &quot;created_at&quot;
-    t.datetime &quot;datetime&quot;
     t.datetime &quot;updated_at&quot;
     t.string   &quot;remember_token&quot;
     t.datetime &quot;remember_token_expires_at&quot;</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c582678ec66e5bc92689f23bb8a1a59d1d2cf9ee</id>
    </parent>
  </parents>
  <author>
    <name>dagi3d</name>
    <email>borjam@dagi3d.net</email>
  </author>
  <url>http://github.com/dagi3d/facturails/commit/e81f6f6df0abab090bed97685e5cc312af82c872</url>
  <id>e81f6f6df0abab090bed97685e5cc312af82c872</id>
  <committed-date>2008-11-28T15:29:01-08:00</committed-date>
  <authored-date>2008-11-28T15:29:01-08:00</authored-date>
  <message>refactorizado el controlador de clientes</message>
  <tree>5bcabb949832f9ee11d3f64606bedeef5b9a7ebf</tree>
  <committer>
    <name>dagi3d</name>
    <email>borjam@dagi3d.net</email>
  </committer>
</commit>
