Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix very strange bug with form_for and capture_html (double render) #1177
Here's some code that fails very strangely on padrino edge:
It's basically a test if a block provided for
If you visit the app with padrino edge, log shows double CAPTURE.
The bug is very strange and I fail to write any test that would catch it. Also I don't understand how
Please help me with test and maybe explanation of the patch effect.
Okay, here's the summary:
haml does not suffer from lacking any of these commits (1 capture in tests)
slim suffers from both. It doubles the number of captures in
erb suffers only from
I still don't understand why
saves slim and erb. The only idea I have is some kind of runtime optimization.