This seems like a discussion better suited on rubyonrails-talk. I don't see how 
it pertains to the core of the framework.


On Wednesday, 6 June 2012 at 9:44 PM, Jarl Friis wrote:

> Hi.
> 
> I amn just upgrading a project from 2.3.12 to 3.0.11.
> 
> I have come pretty long, my unit tests succeeds, but my functional
> tests also tests the views. There I experience that code like
> <%= form_for(@order, :html => {:multipart => true}) do |f| %>
> <% end %>
> 
> renders the content of the block twice, that means the stuff between
> the do and end renders twive, not the formtag itself.
> 
> And yes it is intentionally that I use '<%=' as this is how it should
> be in Rails 3. I have tried to put a debug statement like
> <%= form_for(@order, :html => {:multipart => true}) do |f| %>
> <% debugger %>
> <% end %>
> 
> That is only hit once... So somehow the output is buffered, and the
> code block is apparently not invoked twice, just outputted twice.
> 
> Does anyone have a clue on why this happens? or where I should dig further.
> 
> Jarl
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Core" group.
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]).
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-core?hl=en.
> 
> 


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en.

Reply via email to