On Tue, 16 Oct 2007 23:48:51 -0700, Nathan Weizenbaum wrote:

> The issue is how form_tag creates it's output. You'll notice in the 
> Rails docs, it uses the RHTML equivalent of -, <%, as opposed to the 
> equivalent of =, <%=. This is because form_for outputs directly to the 
> buffer that's gathering the eventual Haml result string. This is done as 
> a side effect; you don't need to deal with its return value. It so 
> happens that it also returns the text it added, so that using = causes 
> duplication.
> 
> - Nathan

Thanks, I didn't realize that form_for output directly to the buffer, and
I guess never even took notice of the fact that all of my rhtml templates
used <% instead of <%=.

Thanks


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