When trying to execute
当试图执行
attachment report[1] do |a|
a.body = File.read(report[0])
a.filename = report[0].gsub(/.*\//,'')
end
attachment repWhen trying to execute
当试图执行
attachment report[1] do |a|
a.body = File.read(report[0])
a.filename = report[0].gsub(/.*\//,'')
end
attachment rep