Displaying 1 result from an estimated 1 matches for "currentcustid".
2008 Sep 02
5
Appending a record to a table
...treatment information from the cart into the
LineItem record.
Any ideas?
My code is as follows. I keep coming across this idea of using << but
none of the literature I''m reading makes a huge deal of sense.
@cart = find_treat
l = LineItem.new
c = Customer.find(session[:currentcustID])
t = Therapist.find(params[:appt_therapist])
a = Appointment.new
a.appdate = params[:appt_date]
a.apptime = params[:appt_time]
a.applength = @cart.total_time
a.customer = c
l.appointment = a
l.customer = c
l.therapist = t
tr = Treatment.new
@cart.ite...