Commit 79ed2e22

mo khan <mo@mokhan.ca>
2013-07-15 00:30:28
format json so that it iphone friendly
1 parent 8efc098
Changed files (1)
app
views
api
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