Commit 9cbbd45

mo khan <mo@mokhan.ca>
2016-05-28 03:02:46
render json response for gyms endpoint.
1 parent 22918cb
Changed files (1)
app
app/views/gyms/index.json.jbuilder
@@ -0,0 +1,6 @@
+json.array! @gyms do |gym|
+  json.name gym.name
+  json.full_address gym.full_address
+  json.latitude gym.latitude
+  json.longitude gym.longitude
+end