Tuesday, December 25, 2012

Rocky Jaiswal

Rocky Jaiswal: "Here we are basically using jQuery UI’s autocomplete function and passing it the data source as a variable named “names”, which we populate through an AJAX call (with Rails we get the server code free when we scaffold). Since the /users.json call retuns other associated data in the JSON we need to clean it up (it contains other fields such as age, last_updated_at etc.)."

'via Blog this'