master
1json.cache! ['v1', tutorial] do
2 json.id tutorial.id
3 json.heading tutorial.heading
4 json.description tutorial.description
5 json.url tutorial.url
6 json.image_url tutorial.image_url
7 json.author tutorial.author
8 json.author_url tutorial.author_url
9 json.created_at tutorial.created_at
10 json.updated_at tutorial.updated_at
11 json.tags tutorial.tags do |tag|
12 json.name tag.name
13 end
14end