jywarren/mapknitter — Issue #77: export partial errors
Author: jywarren
Created: 2011-12-31 21:57:52+00:00
State: open

Processing MapController#output (for 66.249.72.54 at 2011-12-31 16:45:21) [GET]
Parameters: {"action"=>"output", "id"=>"677", "controller"=>"map"}
Rendering map/output

ActionView::TemplateError (undefined method `/' for nil:NilClass) on line #81 of app/views/map/output.html.erb:
78: end
79: hist = hist[0..100]
80: grouphist = @map.grouped_images_histogram((hist.length/15).to_i+1)
81: resolution = @map.average_cm_per_pixel.to_s[0..4]
82: %>
83:
84:

app/models/map.rb:126:in `average_cm_per_pixel'
app/views/map/output.html.erb:81
app/controllers/map_controller.rb:257:in `output'
/home/warren/.passenger/standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.6.1-1002/support/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'