I have a method “process” to process an order. It works good. I then
added an actionmailer to send an email confirmation when the order is
processed. I believed I followed the example from AWDWR 2nd ed.
Anyhow, I how get an error in regards to this addition:
NameError (undefined local variable or method
order' for #<Order: 0x34fbcdc>): /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1860:inmethod_missing’
My order.rb model line 38 says:
My order)mailer.rb has:
@subject = ‘Company Order Confirmation’
@body[“order”] = order
@recipients = order.email
@bcc = ‘[email protected]…’
@from = ‘[email protected]…’
@sent_on = Time.now
@headers[“Organization”] = “Company”
Would anyone know what the problem is?