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:
My order.rb model line 38 says:
My order)mailer.rb has:
@subject = 'Company Order Confirmation'
@body["order"] = order
@recipients = order.email
@bcc = 'orders@...'
@from = 'orders@...'
@sent_on = Time.now
@headers["Organization"] = "Company"
Would anyone know what the problem is?