title: can't get rails current_page? method to work with both GET and POST
body: <p>Given I have the following routes defined in routes.rb</p>
  
  <pre><code>get "signup" =&gt; "users#new"
  post "signup" =&gt; "users#create"
  </code></pre>
  
  <p>and the following condition in my erb view</p>
  
  <pre><code>&lt;%if current_page?(login_path) or current_page?(signup_path)%&gt;
          &lt;p&gt; NOW YOU'RE IN&lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>How do I get both the GET and POST path to be recognized by current_page? Now whenever it's in users#create, the p tag does not show. I am assuming it's because the route defined /signup as a get for users#new, and post is something else entirely. </p>
  
  <p>I've tried the following, but it does not appear to work</p>
  
  <pre><code>&lt;%if current_page?(login_path) or current_page?(signup_path) or current_page?(controller: "users", action: "create")%&gt;
              &lt;p&gt; NOW YOU'RE IN&lt;/p&gt;
      &lt;% end %&gt;
  </code></pre>
  
  <p>Edit: The reason why I have a post is because if the sign up form has an error, it will redirect back to the sign up page, but this time for some reason the action is no longer new, but create</p>