From: Ira W. Snyder Date: Tue, 27 Nov 2007 08:04:01 +0000 (-0800) Subject: Fix 'maintenence' to 'maintenance' + layout reorganization X-Git-Tag: turned-in~3 X-Git-Url: https://irasnyder.com/gitweb/?a=commitdiff_plain;ds=inline;h=64aa5e3cbee5e3c07e0d97ee60d03a4a2dfcf787;p=cs356-p2-videostore.git Fix 'maintenence' to 'maintenance' + layout reorganization Signed-off-by: Ira W. Snyder --- diff --git a/app/controllers/login_controller.rb b/app/controllers/login_controller.rb index 53cd00b..7d9b914 100644 --- a/app/controllers/login_controller.rb +++ b/app/controllers/login_controller.rb @@ -5,10 +5,10 @@ class LoginController < ApplicationController before_filter :authorize, :only => :index # Only managers can do the following actions - before_filter :manager, :only => [:add_user, :delete_user, :list_users, :maintenence] + before_filter :manager, :only => [:add_user, :delete_user, :list_users, :maintenance] - def maintenence - render :action => 'maintenence' + def maintenance + render :action => 'maintenance' end def limits diff --git a/app/models/bonus_purchase.rb b/app/models/bonus_purchase.rb index a0d8a5c..044b2e2 100644 --- a/app/models/bonus_purchase.rb +++ b/app/models/bonus_purchase.rb @@ -7,9 +7,7 @@ class BonusPurchase < Purchase def self.last_bonus_date(customer,bonus_type,since_date) bonuses = BonusPurchase.find_all_by_customer_id(customer, :conditions => ["date >= ?", since_date], :order => 'date DESC') - puts "*** BONUSES.length: #{bonuses.length} ***" for bonus in bonuses - puts "#{bonus.rentable.class.to_s} == #{bonus_type.to_s} => #{bonus.rentable.class.to_s == bonus_type.to_s}" if bonus.rentable.class.to_s == bonus_type.to_s return bonus.date end diff --git a/app/views/coitem/index.rhtml b/app/views/coitem/index.rhtml index 3465f5a..fc5e365 100644 --- a/app/views/coitem/index.rhtml +++ b/app/views/coitem/index.rhtml @@ -1,4 +1,4 @@ -

Checked Out Items Maintenence

+

Checked Out Items Maintenance

Actions