title: Rails: how to pass OR statement into current_page method?
body: <p>I have the following code that denotes an active tab whenever the user is on a certain subpage, in this case the Users index view.</p>
  
  <pre><code>  &lt;li class="&lt;%='active' if current_page?(users_path) %&gt;"&gt;
      &lt;%= link_to 'Users',      users_path %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I'd like it so that the tab is shown as "active" whenever the user is on any of the show, edit, OR index pages.</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>  &lt;li class="&lt;%='active' if current_page?(users_path || edit_user_path || user_path) %&gt;"&gt;
      &lt;%= link_to 'Users',      users_path %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>But only users_path is recognized.</p>
  
  <p>What's the correct way to build an OR statement into the current_page method?</p>