Haml 1.8.2 will remain incompatible with the latest Rails. We'll be 
releasing 2.0 very soon, which will keep compatibility. For now, you can 
grab the most recent version from git.

[EMAIL PROTECTED] wrote:
> servus.
> for haml 1.8.2 to work with rails 2.1RC the following modification are
> neaded
>
>  
> Haml::Engine.new(template.source,options).send(:precompiled_with_ambles,
> [])
> instead of       Haml::Engine.new(template,
> options).send(:precompiled_with_ambles, [])
>
> and ActionView::Template.register_template_handler(:haml,
> Haml::Template)
> instead of ActionView::Base.register_template_handler(:haml,
> Haml::Template)
>
> cheers
>
>
> On Apr 26, 1:13 pm, Piotr 'Qertoip' Włodarek <[EMAIL PROTECTED]>
> wrote:
>   
>> On Apr 26, 11:53 am, Piotr 'Qertoip' Włodarek <[EMAIL PROTECTED]>
>> wrote:
>>
>>     
>>> Edge Rails as of Sat Apr 26 12:21 2008 +1200 (just before Rails 2.1)
>>> +
>>> Haml 1.8.2
>>>       
>>> I get exception:
>>>       
>>>  NoMethodError in Pages#index
>>>       
>>> Showing pages/index.html.haml where line # raised:
>>>       
>>> undefined method `strip' for #<ActionView::Template:0x69acc74>
>>>       
>>> Is there a workaround? When can we expect Haml to work with Rails 2.1?
>>>       
>> OK, this seems to solve the problem:
>> haml-1.8.2/lib/haml/template/plugin.rb:27
>>
>> Is:
>> Haml::Engine.new(template, options).send(:precompiled_with_ambles, [])
>>
>> Should be:
>> Haml::Engine.new(template.source,
>> options).send(:precompiled_with_ambles, [])
>>     
> >
>
>   


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