Ah–and the params hash is accessible from my helper–bitchin’!
Thanks very much!.
From: [email protected]
[mailto:[email protected]] On Behalf Of Brian H.
Sent: Thursday, July 17, 2008 11:10 AM
To: [email protected]
Subject: [Rails] Re: which controller called my helper method?
controller and action are always in your params
If you can do params[:id] then you can do params[:controller]
On Thu, Jul 17, 2008 at 1:05 PM, Pardee, Roy [email protected] wrote:
Is there a global var or something that holds the name of the
that called a given helper? I’m trying to re-use a partial,
a helper, and need to do something slightly different depending
controller called the helper.
Group Health Center For Health Studies (Cancer Research Network)
Google Talk: rpardee