From: Ira W. Snyder Date: Tue, 27 Nov 2007 03:16:33 +0000 (-0800) Subject: Fix spelling of 'receipt' in the Purchase Controller X-Git-Tag: turned-in~10 X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=7f95e18dac6aa7aad71099526bbd104481516c7a;p=cs356-p2-videostore.git Fix spelling of 'receipt' in the Purchase Controller Signed-off-by: Ira W. Snyder --- diff --git a/app/controllers/purchase_controller.rb b/app/controllers/purchase_controller.rb index a8bfa8f..a086306 100644 --- a/app/controllers/purchase_controller.rb +++ b/app/controllers/purchase_controller.rb @@ -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 diff --git a/app/views/purchase/menu.rhtml b/app/views/purchase/menu.rhtml index 5fc8814..13f5685 100644 --- a/app/views/purchase/menu.rhtml +++ b/app/views/purchase/menu.rhtml @@ -27,6 +27,6 @@


-
  • <%=link_to 'End Purchase', :action => 'reciept' %>
  • +
  • <%=link_to 'End Purchase', :action => 'receipt' %>
  • diff --git a/app/views/purchase/reciept.rhtml b/app/views/purchase/receipt.rhtml similarity index 98% rename from app/views/purchase/reciept.rhtml rename to app/views/purchase/receipt.rhtml index 2c4918a..d5054cf 100644 --- a/app/views/purchase/reciept.rhtml +++ b/app/views/purchase/receipt.rhtml @@ -1,4 +1,4 @@ -

    Reciept

    +

    Receipt

    Customer ID: <%= @customer.id.to_s %>

    Customer Name: <%= @customer.name.to_s %>