sinatra_more icon indicating copy to clipboard operation
sinatra_more copied to clipboard

Multiple Renders with Erubis

Open probablykabari opened this issue 14 years ago • 1 comments

When using erubis (v 2.6.6 for me) the #form_for helper causes templates to render several times within the same layout.

probablykabari avatar Dec 27 '10 04:12 probablykabari

I also met this problem with erb template.


Code:

 before
<% form_tag "/update" do %>
  # 'before' is rendered again here!
<% end %>

GEMs:

    activesupport (3.0.3)
    rack (1.2.1)
    sinatra (1.1.0)
      rack (~> 1.1)
      tilt (~> 1.1)
    sinatra_more (0.3.43)
      activesupport
      bundler (>= 0.9.2)
      sinatra (>= 0.9.2)
      thor (>= 0.11.8)
      tilt (>= 0.2)
    thor (0.14.6)
    tilt (1.2.2)

kaorukobo avatar Feb 20 '11 04:02 kaorukobo