X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fcontrollers%2Fpurchase_controller.rb;fp=app%2Fcontrollers%2Fpurchase_controller.rb;h=1c4006959e784d096223d5d3df4632b9afa83051;hb=f102e2d11bd1633579c7cfc244a38a9d8929bd06;hp=0f7e22fa1d79267903c7f463ad1e9df57b977e39;hpb=e4597521e3a7365f86731f7d69643cb1067acb5e;p=cs356-p2-videostore.git diff --git a/app/controllers/purchase_controller.rb b/app/controllers/purchase_controller.rb index 0f7e22f..1c40069 100644 --- a/app/controllers/purchase_controller.rb +++ b/app/controllers/purchase_controller.rb @@ -148,7 +148,7 @@ class PurchaseController < ApplicationController # Actually record the purchase purchase = RentablePurchase.new - purchase.customer_id = session[:customer_id] + purchase.customer_id = session[:customer_id][0] purchase.date = Time.now.to_date purchase.price = @rentable.calculated_price purchase.rentable = @rentable