title: Rails + jQuery ajaxPrefilter
body: <p>I have a Rails 3.1 application</p>
  
  <p>In my gemfile:</p>
  
  <pre><code>gem 'jquery-rails', '&gt;= 1.0.12'
  </code></pre>
  
  <p>In my assets/application.js, I have:</p>
  
  <pre><code>//= require jquery
  //= require jquery_ujs
  //= require_tree .
  </code></pre>
  
  <p>In my application.html layout, I've included these lines</p>
  
  <pre><code>&lt;%= javascript_include_tag "application" %&gt;
  &lt;%= javascript_include_tag "jquery.min" %&gt;
  </code></pre>
  
  <p>I'm using jQuery v1.6.2.</p>
  
  <p>The problem is, when I try to access any page, I keep getting these errors in the console:</p>
  
  <pre><code>Uncaught TypeError: Object function (selector,context){return new jQuery.prototype.init(selector,context);} has no method 'ajaxPrefilter' (:3000/assets/jquery_ujs.js?body=1:290)
  
  Uncaught TypeError: Cannot read property 'setOffset' of undefined (:3000/assets/jquery-ui-1.8.18.custom.min.js?body=1:37)
  
  Uncaught TypeError: Object function (a,b){return new jQuery.prototype.init(a,b)} has no method 'ajaxPrefilter'  (application.js:12)
  </code></pre>
  
  <p>What is ajaxPrefilter, and how do I fix these errors?</p>
  
  <p>I've tried to reorder the javascripts with loading jquery.min.js before application.js, no luck, and I'm not sure how to inspect those errors in the js files themselves.</p>