title: How can I tell if jQueryUI is being loaded properly in Rails 3.1?
body: <p>I've been trying to get jQueryUI tabs to work on my Rails 3.1 application, but I always end up getting.</p>
  
  <p>I am loading jQuery and jQueryUI from the <code>jquery-rails</code> gem manualy in my <code>application.js.coffee</code></p>
  
  <pre><code>#= require jquery
  #= require jquery-ui
  #= require jquery_ujs
  # more requires ...
  
  jQuery -&gt;
    // regular jQuery stuff
  </code></pre>
  
  <p>I always get the <code>TypeError: Object [object Object] has no method 'tabs'</code> as if jQueryUI wasn't loaded properly. Even if I try it in the console</p>
  
  <p><img src="https://i.stack.imgur.com/2FqgR.png" alt="fail in chrome console"></p>
  
  <p>I've checked contents of the <code>jquery-rails</code> gem and it is there </p>
  
  <pre><code>$ head -n 2 ~/.rvm/gems/ruby-1.9.3-p0/gems/jquery-rails-1.0.18/vendor/assets/javascripts/jquery.js 
  /*!
   * jQuery JavaScript Library v1.7
  
  $ head -n 2 ~/.rvm/gems/ruby-1.9.3-p0/gems/jquery-rails-1.0.18/vendor/assets/javascripts/jquery-ui.js
  /*!
   * jQuery UI 1.8.16
  </code></pre>
  
  <p><strong>Why isn't jQueryUI being loaded properly? Do I still need to set something in the app config to make it load jQueryUI? Is there any way I can check when it is being loaded and from where?</strong></p>
  
  <p>I checked the jQueryUI file itself and it actually does contain the tab definition ... proof:</p>
  
  <pre><code>$ grep tabs ~/.rvm/gems/ruby-1.9.3-p0/gems/jquery-rails-1.0.18/vendor/assets/javascripts/jquery-ui.js | wc -l
        90
  </code></pre>