search for: rendering_

Displaying 1 result from an estimated 1 matches for "rendering_".

Did you mean: rendering
2006 Jun 28
0
Getting name of currently rendering ERb template in view?
...that I can pass it to a helper method, is there a built-in variable (like controller_name or action_name) that I can use. Assume x.rhtml and in this template I have helper_method(). I want to pass "x.rhtml" into helper_method without hardcoding it. Do I have access to the _currently rendering_ template name? Thanks, Wes -- Posted via http://www.ruby-forum.com/.