search for: create_invoice

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

2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
...p @expected.body #=> " foo\n" # because text.gsub(/_/," ") If you enhance TMail::Mail#body like this, I want you to convert mail.body code in render_body. My mailer code now: # topic is a ActiveRecord instance. topic attrs encoding is Shift_JIS. mail = Notifications.create_invoice(sent_on, {"topic"=>topic}) # convert from Shift_JIS to ISO-2022-JP # mail.body is incompatible between 1.7.1 and 1.8.0 in ActionMailer... mail.body = NKF.nkf(''-Sj -m0'', mail.quoted_body) # sigh. Notifications.deliver(mail) class Notifications < ActionMaile...