Sorry, this is my fault. Fixed in r8a87095.

scottwb wrote:
> I have been using haml 2.0.4 without problems and just this morning
> tried updating to the latest from git://github.com/nex3/haml.git and
> now all of my render calls are raising an exception in lib/haml/
> template/patch.rb on line 32 that reads:
>
> ActionView::TemplateError (undefined method `to_hash' for #<#<Class:
> 0xb74bccf8>:0xb74bccd0>)
>
> The offending line looks like this:
>
> @@template_args[render_symbol] = to_hash(locals_keys.map {|k| [k,
> true]})
>
> The only place I found to_hash to be defined was in lib/haml/util.rb.
> So, I tried changing the above call to to_hash to be
> Haml::Util.to_hash, and now everything seems to work.
>
> However, I am guessing that nobody else has this problem, so maybe I
> have screwed something up in the way I installed the source from git.
> All I really did was clone the source tree from git and rake install
> the gem. Am I missing something? Perhaps something else I am supposed
> to do to environment.rb or something?
>
> Any advice appreciated...
> -scottwb
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to