Try:
controller.controller_name
controller.action_name
** This was offered in response to a post of mine but I haven''t tried
it
yet.
On Wed, 2006-04-05 at 16:41 +0200, larsenmtl larsenmtl wrote:
> I have a shared partial which could be rendered by two different
> controllers. Is there an easy way in the view to return which
> controller rendered the partial? I''ve tried using:
>
> <%debug(params[''controller''])%>
>
> While that does return what I need it seems like a kludgy fit since
> debug is not meant to be used for that.
>
> Thanks,
>
> LarsenMTL
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060405/c7194456/attachment.html