This project is archived and is in readonly mode.

#4034 ✓resolved
Aslak Hellesøy

Monkey patched ERB breaks other libraries relying on standard behaviour from ERB.

Reported by Aslak Hellesøy | February 22nd, 2010 @ 12:54 PM | in 2.3.8

This monkey patch of ERB causes ERB to behave differently than Ruby standard library's ERB - everything is escaped by default.

This causes problems for e.g. Cucumber, which preprocesses Treetop grammar files with ERB at runtime. Since ERB now behaves in a non-standard way this breaks Cucumber.

Intead of monkey-patching ERB, Rails should define a subclass of ERB with the overridden behaviour, and use that internally.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by