Fix spelling of 'receipt' in the Purchase Controller
[cs356-p2-videostore.git] / app / controllers / purchase_controller.rb
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