Sha256: 18c1dbacb5d2598da943417a1f3aa7d01bfbcffe13f3fee1124155831162eece

Contents?: true

Size: 178 Bytes

Versions: 13

Compression:

Stored size: 178 Bytes

Contents

json.array!(@products) do |product|
  json.extract! product, :id, :name, :code, :price, :category_id, :created_at, :updated_at
  json.url product_url(product, format: :json)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
restspec-0.3.2 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.3.1 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.3.0 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.2.6 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.2.5 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.2.4 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.2.3 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.2.2 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.2.1 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.2 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.1 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.0.4 examples/store-api/app/views/products/index.json.jbuilder
restspec-0.0.3 examples/store-api/app/views/products/index.json.jbuilder