summaryrefslogtreecommitdiff
path: root/app/views/application/json/_tutorials.jbuilder
blob: 2c7f769291e047f9727e93d8ffb66ff73e189b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
json.cache! items do
  json.array! items do |tutorial|
    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
end