views:

25

answers:

0

This makes debugging incredibly difficult.

For example:

Nov 25 14:32:34 Joseph-Rodriguezs-MacBook rails[5167]: NoMethodError (You have a nil object when you didn't expect it!You might have expected an instance of Array.The error occurred while evaluating nil.replace):  app/models/service_item.rb:560:in `send_proposal_email'  app/models/service_item.rb:178:in `change_state_on_create'  app/controllers/service_item_controller.rb:214:in `create'                app/controllers/service_item_controller.rb:174:in `create'  /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ruby_addition.rb:110:in `initialize'  /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ruby_addition.rb:110:in `pre_rubycocoa_new'  /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ruby_addition.rb:110:in `new'

any ideas?