search for: appt_therapist

Displaying 1 result from an estimated 1 matches for "appt_therapist".

2008 Sep 02
5
Appending a record to a table
...neItem 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.items.each do |item| tr = Treatment.find(item...