Forum: Ruby on Rails post rendering templates

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
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.
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:
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.