On Apr 3, 2:06 pm, mixtli <[email protected]> wrote:
> I work with a lot of designers. The question I get all the time is:
> Where is the template that displays xyz? I was thinking it would be
> nice if rails would print the name of each template it loads as an
> html comment like so:
>
Seems like you can do this by overriding render_template in
template.rb. Seems like a fairly handy idea actually, when I have
worked with designers that's definitely a question that has come up
often!
Fred
> <!-- LAYOUT: layouts/application.html.erb -->
> <html><head>etc..</head>
> <body>
> <!-- TEMPLATE: blog/index.html.erb -->
> <!-- TEMPLATE: blog/_side_bar.html.erb -->
> </body>
> </html>
>
> Not having to answer these questions all day would really make my day.
> I poked around the rails code for a couple hours and don't see an
> obvious way. Does anyone have an idea on how to do this?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---