Forum: Ruby on Rails post rendering templates

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Joe Le Brech (Guest)
on 2013-08-23 20:38
(Received via mailing list)
I'm looking to add text before the output of each template and partial
show the following:

<div style="display:none">/path/to/erb/file</div>


document.write ... if it's a javascript file.

If I'm using tilt I also use templates for those notices (for

i've found a gem for rails 2 that did that, but it doesn't work anymore.

Is there a after_render hook in tilt that I could use.

This is just for development mode.
Joe Le Brech (Guest)
on 2013-08-29 15:08
(Received via mailing list)
I've found what i'm looking for:
This topic is locked and can not be replied to.