You didn't do the conversion quite right. In the ERB, you've got "<%
form_for", while in the Haml, you've got "= form_for". <% in ERB is the same
as - in Haml, so if you use "- form_for" it'll work fine.

On Thu, Jan 29, 2009 at 10:52 PM, Stephen Bannasch <
[email protected]> wrote:

>
> I'm converting erb code to haml.
>
> I have a partial converted to haml and it is rendered just once when
> called from the erb view template (the correct operation).
>
> After converting the view template to haml the partial is called twice.
>
> The haml partial, the erb and haml view templates and the html
> produced are all at this pastie:
>
>   http://pastie.org/374922
>
> Thanks for any ideas.
> --
> - Stephen Bannasch
>   Concord Consortium, http://www.concord.org
>
> >
>

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