I know I’ve seen this before, but I can’t find it and Google hasn’t
been a help…
From within a controller method, how can I find the name of the
requesting controller? For example, if I’m in controller C1 and I do
redirect_to :controller=> ‘foo’, :action => ‘bar’,
how can I find the name of the requesting controller (C1) from within
I thought it was request.controller, but that doesn’t seem to work.