views:

40

answers:

1

Hi

Since migrating a project to rails 3, haml errors are not very descriptive..

All we're getting in the logs is a generic nil object error.

For instance in rails 2.3.8 when the indentation in a haml file was incorrect we'd get an error message pointing to the file and approx line.

However now in rails 3 we just get

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.+):

Using ruby 1.9.2 / rails 3 / haml 3.0.18

Thanks for your help

Dom

A: 

Can you post the Haml code that generates this error?

nex3