Here's the errant code:
module StandardBookMobileReport
def build_standard_report_header
image_path = Rails.public_path.to_s + "/images/masthead.jpg"
center_image_in_box image_path
end
end
If I comment out the center_image bit I have no problems.
Here's the relevant log:
ArgumentError (comparison of Fixnum with nil failed):
app/reports/StandardBookMobileReport.rb:4:in
`build_standard_report_header'
app/controllers/reports_controller.rb:34:in `lowInventoryReport'