Commit 79ed2e22
Changed files (1)
app
views
api
v1
creations
app/views/api/v1/creations/index.json.jbuilder
@@ -1,9 +1,11 @@
json.array! @creations do |creation|
+ json.id creation.id
json.name creation.name
json.user do
json.name creation.user.name
end
+ json.photo "http:#{creation.photos.first.image.thumb.url}"
json.photos creation.photos do |photo|
- json.url url_for(photo.image_url)
+ json.url "http:#{photo.image.thumb.url}"
end
end