Report abuse
1
2
3
4
5
6
7
8
9
10
|
class CartController < ApplicationController
def checkout
...
@sale = Sale.new(:account => @session[:user],
:payment_method => @session[:payment],
:cart => @cart,
:affiliate => Account.find_by_affiliate_token(cookies[:affiliate]))
...
end
end
|