Well, it seems @_first_render.filename does the trick. Now, I'm just a little unsure about the "_" in front - usually that denotes the variable as "internal - don't use". Is there a "more official" way to access this information?
On Mar 10, 5:34 pm, "[email protected]" <[email protected]> wrote: > Hi, > > I would like to access the filename of the (main) template used for a > request, and I would like to do so in the (main application) layout > template. I know about @template, but @template.template.filename > yields the filename of the application template file, not of the view > template file. On the other hand, the filename is in @template > somewhere - I can see it when I look at @template.inspect. I'm just > too stupid to find out where exactly... >... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

