title: jQuery UI autocomplete doesn't work in rails app
body: <p>I want to use jQuery UI autocomplete function in my rails app. I get a example in <a href="http://jqueryui.com/autocomplete/" rel="nofollow">jQuery website</a> and want to make it in my rails app. <code>jquery-rails</code> and <code>jquery-ui-rails</code> all have been installed.</p>
  
  <p>I added the below codes to <code>application.js</code></p>
  
  <pre><code>$(function() {
      var availableTags = [
        "C",
        "C++",
        "Clojure",
        "COBOL",
        "Haskell",
        "Java",
        "JavaScript",
        "Perl",
        "PHP",
        "Python",
        "Ruby",
      ];
      $( "#tags" ).autocomplete({
        source: availableTags
      });
    });
  </code></pre>
  
  <p>add some codes to <code>show.html.erb</code>:</p>
  
  <pre><code>&lt;div class="ui-widget"&gt;
    &lt;label for="tags"&gt;Tags: &lt;/label&gt;
    &lt;input id="tags"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but doesn't autocomplete when I input something(like: "ja"..)</p>
  
  <p>Anyone can help me, thanks in advance!</p>