Fix spelling of 'receipt' in the Purchase Controller
authorIra W. Snyder <devel@irasnyder.com>
Tue, 27 Nov 2007 03:16:33 +0000 (19:16 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Tue, 27 Nov 2007 03:16:33 +0000 (19:16 -0800)
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
app/controllers/purchase_controller.rb
app/views/purchase/menu.rhtml
app/views/purchase/receipt.rhtml [moved from app/views/purchase/reciept.rhtml with 98% similarity]

index a8bfa8f..a086306 100644 (file)
@@ -79,7 +79,7 @@ class PurchaseController < ApplicationController
     session[:items] = []
   end
 
-  def reciept
+  def receipt
     # Save important data, since we're gonna wipe it out now
     @customer = Customer.find_by_id(session[:customer_id])
     @debt = @customer.debt
@@ -106,8 +106,8 @@ class PurchaseController < ApplicationController
     session[:total] = nil
     session[:items] = nil
 
-    # Show the reciept
-    render :action => 'reciept'
+    # Show the receipt
+    render :action => 'receipt'
   end
 
   def customer_ok
index 5fc8814..13f5685 100644 (file)
@@ -27,6 +27,6 @@
   <br/>
   <br/>
   <br/>
-  <li><%=link_to 'End Purchase', :action => 'reciept' %></li>
+  <li><%=link_to 'End Purchase', :action => 'receipt' %></li>
 </ul>
 
similarity index 98%
rename from app/views/purchase/reciept.rhtml
rename to app/views/purchase/receipt.rhtml
index 2c4918a..d5054cf 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Reciept</h1>
+<h1>Receipt</h1>
 
 <p><b>Customer ID: </b><%= @customer.id.to_s %></p>
 <p><b>Customer Name: </b><%= @customer.name.to_s %></p>