The current controller is always in the "@controller" variable, so:
@controller.class.to_s
If you want the name as a string. If you just want to test if the controller is a certain type use the "===" operator instead, eg;
if WidgetController === @controller # running under widgetcontroller else # ... end
Cheers, Tyler