Forum: Ruby on Rails Return Rendering Controller In View

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Larsenmtl L. (Guest)
on 2006-04-05 18:41
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:


While that does return what I need it seems like a kludgy fit since
debug is not meant to be used for that.


Charlie B. (Guest)
on 2006-04-05 18:53
(Received via mailing list)


** This was offered in response to a post of mine but I haven't tried it
Larsenmtl L. (Guest)
on 2006-04-05 18:56
Simple, clean and worked like a charm.  I knew I was missing something.

Thanks a lot.
This topic is locked and can not be replied to.