]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/nodes/index.json.jbuilder
Use translated model names in issue type select
[rails.git] / app / views / api / nodes / index.json.jbuilder
index f42f7563bda43b63cc724ec8a2dc5fcd0d2f5a73..7708a3498def39f51b4daabc7b72d516515524db 100644 (file)
@@ -1,5 +1,5 @@
-json.partial! "api/map/root_attributes"
+json.partial! "api/root_attributes"
 
 
-json.elements(@nodes) do |node|
-  json.partial! node
+json.elements do
+  json.array! @nodes, :partial => "node", :as => :node
 end
 end