Skip to content

Instantly share code, notes, and snippets.

@Frank004
Created June 3, 2016 14:19
Show Gist options
  • Select an option

  • Save Frank004/e922d49efa02a7b27e9a18ce7f53df47 to your computer and use it in GitHub Desktop.

Select an option

Save Frank004/e922d49efa02a7b27e9a18ce7f53df47 to your computer and use it in GitHub Desktop.
json.array!(@task_trans) do |task_tran|
json.extract! task_tran, :name, :id, :description
json.start task_tran.start_date
json.end task_tran.end_date
json.url task_tran_url(task_tran, format: :html)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment