title: Rails current url helper
body: <p>Apologies for such a simple question, but I couldn't been able to solve it myself after hours since my RoR knowledge is basically nonexistent. In the Rails application I'm working with, has been used a navigation helper to highlight active menu:</p>
  
  <pre><code>  def nav_link(link_text, link_path, ico_path)
      class_name = current_page?(link_path) ? 'active' : nil
  
      content_tag :li do
        link_to(link_path, class: class_name) do
          image_tag("icons/#{ico_path}.svg") + content_tag(:span, link_text)
        end
      end
    end
  </code></pre>
  
  <p>The circumstances have changed and <code>current_page?</code> is no longer a viable option, since routing now handled on the front-end. Is there a way to achieve the same functionality by retrieving, for instance, current url and check it against <code>link_path</code>?. I've tried a lot of things with different helpers like <code>request.original_url</code>, but to no avail.</p>