I tried using capture_haml in a helper and it failed with: Error: You have a nil object when you didn't expect it! The error occurred while evaluating nil.capture_position=
Looking through the code, I think that b63742e[1] (3/6/2009) may have introduced an error, as it added the following haml_buffer.capture_position = nil And haml_buffer() can return nil (e.g. when called from within a view with a block, in which case the buffer is taken from the block's binding). As I'm not familiar with HAML's codebase, I haven't submitted a patch, but as that line was added for a specific case [2] its solution may be simple. Thanks! nachokb PS: Hamton, I sent you a message through GitHub, but then I wanted to ask here, sorry. [1] http://github.com/nex3/haml/commit/b63742e1f0b5dbc49518bbfedae73ca1da836c67 [2] Commit message: "Fix a weird outer-whitespace-nuking bug." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
