HTTP 500 due to NoMethodError on .clj file
Created by: mattwillsher
When browsing to http://192.168.0.24/scotam-data-api/master/tree/src/scotam/data_api/db.clj we get the following error in the production.log and the code isn't displayed as expected:
Started GET "/scotam-data-api/master/logs_tree/src/scotam/data_api/db.clj?_=1343738601473" for 127.0.0.1 at 2012-07-31 13:43:20 +0100
Processing by RefsController#logs_tree as JS
Parameters: {"_"=>"1343738601473", "project_id"=>"scotam-data-api", "id"=>"master", "path"=>"src/scotam/data_api/db.clj"}
Completed 500 Internal Server Error in 23ms
NoMethodError (undefined method `contents' for #<Grit::Blob "dbb860e8c07b758f18b2882875d34b33d75a8b29">):
app/models/tree.rb:5:in `contents'
app/controllers/refs_controller.rb:50:in `logs_tree'