problems integrating globalize and haml

4 views
Skip to first unread message

Stephen Bannasch

unread,
Oct 16, 2007, 9:33:02 PM10/16/07
to ha...@googlegroups.com
[This is a copy of a response to a thread started on the globalize list: us...@list.globalize-rails.org. I am sending a copy here in case anybody has any debugging suggestions, thanks]

At 12:29 AM -0700 10/15/07, Thibaud Guillaume-Gentil wrote:
>Do you know when Globalize will be ready for rails 2.0?
>
>I have some problems with the trunk version of Globalize and the haml
>language template, the haml's code is not interpreted and directly rendered
>to the browser (ActionView problem?).

Hi Thibaud,

I have also had this problem using haml and globalize trunk with edge rails in an application that only uses globalize for access to multi-language AR model attributes.

I have spent some time using rdebug on the code to see what the problem is but haven't found the conflict yet.

I have started a simple application in which I have globalize and haml installed as plugins but am not using any of globalize's features and haml still works. I plan on enabling globalize features one by one to narrow down where the conflict happens.

If you have any clues please contribute them to the discussion.

Mislav Marohnić

unread,
Oct 17, 2007, 4:00:46 AM10/17/07
to ha...@googlegroups.com
On 10/17/07, Stephen Bannasch <stephen....@deanbrook.org> wrote:

I have also had this problem using haml and globalize trunk with edge rails in an application that only uses globalize for access to multi-language AR model attributes.

Here is a message from a relevant thread:
http://groups.google.com/group/haml/msg/70ccbb0aaae9d770

Then read my blog post, the very bottom:
http://mislav.caboo.se/rails/rails-2-0-taking-the-plunge/

The file you are looking for is this:
http://svn.globalize-rails.org/svn/globalize/trunk/lib/globalize/rails/action_view.rb

The line with extensions should be changed:
@@re_extension = /\.(rjs|rhtml|rxml|erb|builder|haml)$/

That's it.
Reply all
Reply to author
Forward
0 new messages