First question: I want to migrate an app that uses rhtml and rjs to haml. To do this effectively, I was hoping I could call my rhtml partials from haml. So far, no success. Anybody do this successfully?
= render(:partial => 'foo')
gives me the `find_template_extension_for': No rhtml, rxml, rjs or delegate template found
Second question: Is there any way to intersperse Ruby into template other than in an = code injector. For example, is there a better way to write this?
That's an extremely odd error. We use mixed-type partials all the time
in our production code. So, I'm not sure what might be causing that
error. In fact, when you call render, your directly referencing
ActionView::Base.render.... something that HAML is not really involved
with (except as being one of the delegate renderers).
What happens if you are more explicit with your call?