title: TypeError: $.url is not a function
body: <p>I am having a javascript file named _report_js.html.erb file under app/views/reports. WHen I run my application, I am getting the error:</p>
  
  <blockquote>
    <p>TypeError: $.url is not a function</p>
  </blockquote>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      if($.url().param('ig') == 'true') {
        alert("hi");
        $('#icons').hide();
        $('#photos').show();
      end
  &lt;/script&gt;
  </code></pre>