]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/ways/show.json.jbuilder
Add social sharing functionality
[rails.git] / app / views / api / ways / show.json.jbuilder
index e5cd31fed0026467453814c03b07cc79b740e763..92e570d869f300204bb8d92eb9a20190b242f4de 100644 (file)
@@ -1,5 +1,5 @@
-json.partial! "api/map/root_attributes"
+json.partial! "api/root_attributes"
 
 
-json.elements([@way]) do |way|
-  json.partial! way
+json.elements do
+  json.array! [@way], :partial => "way", :as => :way
 end
 end