Hey guys,

I'm trying to extract the name of the template I am currently to be 
yielding from my layout, but with no success. Does anyone know how to do 
that?

Suppose I am calling the MainController#create action. On failure to 
create my erm...Main object it re-renders the 'new' template. I'd like 
to know in the layout which template I am going to render so that I can 
access a help system which can dynamically include help information 
depending on which template I am rendering at the time. Then no matter 
what controller or what action I am calling at the time, as long as I 
have the template name I can display the same information.

Any ideas?

RobL
http://www.robl.me

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to