title: How to call another action with parameter in rails active admin?
body: <p>First time using rails, everything seems alien, please be kind with this stupid question.</p>
  <p>I code something like:</p>
  <pre><code>ActiveAdmin.register Post do
  
    member_action :action1 do
      &lt;some code&gt;
    end
  
    member_action :action2 do
      if(&lt;some check&gt;)
        &lt;some work&gt;
      else
        &lt;here I need to call the action1 with parms action2 has&gt;
      end
    end
  
  end
  </code></pre>
  <p>How should I do this? How can I call action1 with the parms in the else block?</p>
  <p>I tried</p>
  <pre><code>redirect_to action1(request.parameters)
  </code></pre>
  <p>It didn't work it throw error action1 is undefined.</p>