How do I get the current action from within a controller?
<p>How do I get the current action from within a controller? <code>current_page?</code> works for views, but not controllers.</p>

<pre><code>redirect_to step3_users_path unless current_page?(step3_users_path)
</code></pre>

<p>I also tried</p>

<pre><code>controller.action_name == 'step3'
</code></pre>

<p>I also tried</p>

<pre><code>params[:action_name] == 'step3'
</code></pre>