Skip to content

Instantly share code, notes, and snippets.

@prathamesh-sonpatki
Created May 11, 2013 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prathamesh-sonpatki/5558812 to your computer and use it in GitHub Desktop.
Save prathamesh-sonpatki/5558812 to your computer and use it in GitHub Desktop.
coffeescript is awesome
# Fill out the form with company attributes
attributes = ['name', 'website', 'phone', 'address', 'country', 'state', 'city', 'zip']
for attr in attributes
$("#company_#{attr}").val(company["#{attr}"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment