charlie bowman
2006-Mar-17 03:22 UTC
[Rails] does the template know the name of the method that called it
Within a template, is it possible to get the name of the calling method? What other data can you query within your template? -- Posted via http://www.ruby-forum.com/.
Dave Silvester
2006-Mar-17 06:39 UTC
[Rails] does the template know the name of the method that called it
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. ;-) ~Dave -- Dave Silvester Rent-A-Monkey Website Development http://www.rentamonkey.com/ PGP Key: http://www.rentamonkey.com/pgpkey.asc