globalize and haml

If you are using HAML and Globalize then you might need to tweak plugins/globalize/lib/globalize/rails/action_view.rb so HAML templates are actually “transformed”:
Change

@@re_extension = /\.(rjs|rhtml|rxml)$/

to

@@re_extension = /\.(rjs|rhtml|rxml|erb|builder|haml)$/

and HAML works again.

back

Leave a Reply