title: current_page? inside controller
body: <p>Is there any easy way of using something like <code>current_page?</code>method
  from <code>ActionView::Helpers::UrlHelper</code> inside controller?</p>
  
  <p>I have routing like:</p>
  
  <pre><code>resources :addresses
  resources :mailing_addresses, :controller =&gt; 'addresses'
  </code></pre>
  
  <p>And I would like to do a check in my controller that would look like
  this:</p>
  
  <pre><code>class AddressesController
  
    def index
      if current_page?(live_addresses_path)
         # ... logic goes here
      elsif current_page?(addresses_path)
         # ... logic goes here
      end
    end
  
  end
  </code></pre>
  
  <p>What's the easiest way of achieving it?</p>