Skip to content

Instantly share code, notes, and snippets.

@twilson63
Created January 16, 2009 17:25
Show Gist options
  • Save twilson63/48019 to your computer and use it in GitHub Desktop.
Save twilson63/48019 to your computer and use it in GitHub Desktop.
## Haml View
- fields_for "tests[]", t do |lt|
= lt.text_field :name, { :class => "ac"}
## JQuery JS
$(document).ready( function(){
$('input.ac').autocomplete("/javascripts/search.js");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment