Skip to content

Instantly share code, notes, and snippets.

@laffy
Created February 20, 2014 11:55
Show Gist options
  • Save laffy/9111972 to your computer and use it in GitHub Desktop.
Save laffy/9111972 to your computer and use it in GitHub Desktop.
json.array! @people do |person|
json.name person.name
json.age calculate_age(person.birthday)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment