diff options
| author | mo k <mo.khan@gmail.com> | 2014-11-22 21:35:38 -0700 |
|---|---|---|
| committer | mo k <mo.khan@gmail.com> | 2014-11-22 21:35:38 -0700 |
| commit | 7620674929c024a7279dfa116deab8805f2fb2ec (patch) | |
| tree | 38e5daa58e646a1907765def9c64d2f7a56b5fe9 /app/views/api/v1/tutorials/_tutorial.json.jbuilder | |
| parent | 31b5a3cf55d273dfc93385be8cf28ce1f8f8abd2 (diff) | |
| parent | 66c09b81c3a4baeb0ca39a1e87496cca53a43a7c (diff) | |
Merged in mocheen/cakeside/cake-uploads (pull request #117)
add tools to cake edit page.
Diffstat (limited to 'app/views/api/v1/tutorials/_tutorial.json.jbuilder')
| -rw-r--r-- | app/views/api/v1/tutorials/_tutorial.json.jbuilder | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/app/views/api/v1/tutorials/_tutorial.json.jbuilder b/app/views/api/v1/tutorials/_tutorial.json.jbuilder index 6bfdbc1a..dbfe2974 100644 --- a/app/views/api/v1/tutorials/_tutorial.json.jbuilder +++ b/app/views/api/v1/tutorials/_tutorial.json.jbuilder @@ -1,12 +1,14 @@ -json.id tutorial.id -json.heading tutorial.heading -json.description tutorial.description -json.url tutorial.url -json.image_url tutorial.image_url -json.author tutorial.author -json.author_url tutorial.author_url -json.created_at tutorial.created_at -json.updated_at tutorial.updated_at -json.tags tutorial.tags do |tag| - json.name tag.name +json.cache! ['v1', tutorial] do + json.id tutorial.id + json.heading tutorial.heading + json.description tutorial.description + json.url tutorial.url + json.image_url tutorial.image_url + json.author tutorial.author + json.author_url tutorial.author_url + json.created_at tutorial.created_at + json.updated_at tutorial.updated_at + json.tags tutorial.tags do |tag| + json.name tag.name + end end |
