# How to determine the running controller in rails3

**URL:** <https://www.ruby-forum.com/t/how-to-determine-the-running-controller-in-rails3/192360>\
**Category:** Rails\
**Created:** [July 29, 2010, 1:46am UTC](https://www.ruby-forum.com/t/how-to-determine-the-running-controller-in-rails3/192360 "2010-07-29T01:46:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_U](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/90db22/32.png) [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Post date:** [July 29, 2010, 1:46am UTC](https://www.ruby-forum.com/t/how-to-determine-the-running-controller-in-rails3/192360/1 "2010-07-29T01:46:51Z")

</div>

The @controller and @template are returning nil in rails3.

What is the proper way to refer to the current controller in rails3?

Cheers.
