From 7f95e18dac6aa7aad71099526bbd104481516c7a Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Mon, 26 Nov 2007 19:16:33 -0800 Subject: [PATCH] Fix spelling of 'receipt' in the Purchase Controller Signed-off-by: Ira W. Snyder --- app/controllers/purchase_controller.rb | 6 +++--- app/views/purchase/menu.rhtml | 2 +- app/views/purchase/{reciept.rhtml => receipt.rhtml} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename app/views/purchase/{reciept.rhtml => receipt.rhtml} (98%) 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 %>

    -- 2.25.1