Displaying 1 result from an estimated 1 matches for "desclong".
Did you mean:
desclo
2008 Sep 02
5
Appending a record to a table
...ate]
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.id)
logger.warn("Currently Dealing with: #{tr.desclong}")
l.treatment << tr
end
#l.save
I keep getting variations of the following error message:
NoMethodError (You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<):
Thanks in...