title: undefined method "#searchServices" rails and jquery
body: <p>I have a search box in my app in which every time you search for a service the blow function runs and its not working I have an error  </p>
  
  <p>I get errors on this specific line</p>
  
  <pre><code>$("#searchServices").autocomplete({
  
  $(function() {
      $.get("/services",function(data){
          $("#searchServices").autocomplete({
              source: data,
  </code></pre>