Does the template know the name of the method that called it


#1

Within a template, is it possible to get the name of the calling method?
What other data can you query within your template?


#2

On Friday 17 Mar 2006 03:22, charlie bowman wrote:

Within a template, is it possible to get the name of the calling method?

Try:

controller.controller_name
controller.action_name

What other data can you query within your template?

<%= debug controller %>

That’ll be quite a lot then. :wink:

~Dave

Dave S.
Rent-A-Monkey Website Development
http://www.rentamonkey.com/

PGP Key: http://www.rentamonkey.com/pgpkey.asc