i'm using Rails 1.2.3 and had this issue when i updated my various
forms to use form_tag ... do (they previously used the now-deprecated
start_form_tag/end_form_tag)

however, i got bitten because i mistakenly had

= form_tag <blah> do

when i SHOULD have had

- form_tag <blah> do

hence, i was getting what appeared to be 2 renders - the first was the
output produced by the form_tag helper itself, the second was the
*result* of form_tag being rendered as a string (since i had used =
rather than - )

i'm not sure why it doesn't show up in rhtml for you, though.


On Nov 14, 10:27 am, Backspace <[EMAIL PROTECTED]> wrote:
> I've been using and loving Haml for a while. I recently designed a new
> site and used Rails 2.0 (preview release) and Haml from the beginning.
>
> I've found an odd situation where sometimes templates are rendered
> multiple times even when they are only called once. For instance, I
> have a partial form included on the main page for comments. It is
> rendered twice. The new account page is rendered four times!
>
> The reason I suspect Haml is that this duplication ceases when I
> switch the templates to .erb. I've begrudgingly rewritten them with
> ERb because the site needs to be put into production as soon as
> possible.
>
> Has anyone else had this problem? Is there a fix?
--~--~---------~--~----~------------~-------~--~----~
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