Skip to content

Instantly share code, notes, and snippets.

@trepidity
Created September 2, 2014 04:54
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 trepidity/4ed9c149af8354d28073 to your computer and use it in GitHub Desktop.
Save trepidity/4ed9c149af8354d28073 to your computer and use it in GitHub Desktop.
jbuilder for projects
json.timeline do
json.headline "SoldierUP Projects"
json.type "default"
json.text "Stuff People Say"
json.startDate "2012,1,26"
json.date @projects do |project|
json.headline project.title
json.text project.description
json.startDate project.created_at
json.endDate project.due_date
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment