title: autocomplete is not a function Rails 4
body: <p>There are tons of discussions about this topic, but I don't see an answer that fits this particular situation. In a Rails 4 application, I am trying to use "autocomplete" from JQuery UI, like this:</p>
  
  <pre><code>$(function() {
  
  $(".donor_name").autocomplete({
  source: '/donors/?format=json'
    });
  });
  </code></pre>
  
  <p>The Javascript console error is:</p>
  
  <pre><code>Uncaught TypeError: $(...).autocomplete is not a function
  </code></pre>
  
  <p>which seems to be saying, it isn't finding JQuery UI.</p>
  
  <p>Gemfile:
       group :assets do
         gem 'jquery-ui-rails'
       end
       gem 'jquery-rails'</p>
  
  <p>and then in app/assets/javascripts/application.js,</p>
  
  <pre><code>//= require jquery
  //= require jquery_ujs
  </code></pre>
  
  <p>(I tried require jquery-ui but that wasn't recognized)</p>
  
  <p>versions:
  jquery-rails 4.0.4
  jquery-ui-rails 5.0.5</p>
  
  <p>Perhaps someone has seen this before?</p>
  
  <p>UPDATE. @MarsAtomic, I am using the gems, and to the other person, I did follow the directions in that gem documentation. My installation somehow doesn't find "jquery-ui". I was hoping someone had seen this problem before.</p>