Forum: Ruby on Rails post rendering templates

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6623b3045e95611491404026bd823a7a?d=identicon&s=25 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
to
show the following:

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

or

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

If I'm using tilt I also use templates for those notices (for
coffeescript
etc..)

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.
6623b3045e95611491404026bd823a7a?d=identicon&s=25 Joe Le Brech (Guest)
on 2013-08-29 15:08
(Received via mailing list)
I've found what i'm looking for:

https://gist.github.com/excid3/6372212
This topic is locked and can not be replied to.