title: Rails jQuery autocomplete using coffescript
body: <p>I am trying to get auto complete to work using the jquery UI, but it doesn't seem to be triggered.</p>
  
  <p>The hashtag.js.coffee is being loaded into the application.js.  There are no errors being thrown in the console either</p>
  
  <p><strong>hashtag.js.coffee</strong></p>
  
  <pre><code>$('.swag_text_field').autocomplete
  source: ['foo', 'food', 'four']
  </code></pre>
  
  <p><strong>view</strong></p>
  
  <pre><code>&lt;%= form_tag hashtags_path, class: "search-form", remote: true do %&gt;
              &lt;div class="input-prepend input-append"&gt;
              &lt;span class="add-on swag"&gt;#&lt;/span&gt;
  
              &lt;%= text_field_tag :hashtag, nil, class: "span4 swag_text_field", id:"appendedPrependedInput" %&gt;
  
              &lt;%= submit_tag "VS!", class: "btn add-on-right swag_button" %&gt;
              &lt;% end %&gt;
  </code></pre>