Lines 3-4 should be:

- form_for(:image, :url => formatted_images_path(:format =>  
'js'), :html => { :multipart => true, :target => 'upload_frame'}) do | 
form| = render(:partial => '/images/form', :object => form)
Note the preceding minus sign instead of the equals. It turns out  
form_for concats its output right into the buffer so the = does that  
again.

On Jan 29, 2009, at 10:52 PM, Stephen Bannasch 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