json.partial! "api/root_attributes"
-json.changesets(@changesets) do |changeset|
- json.partial! changeset
+json.changesets do
+ json.array! @changesets, :partial => "changeset", :as => :changeset
end
json.partial! "api/root_attributes"
-json.messages(@messages) do |message|
- json.partial! message
+json.messages do
+ json.array! @messages, :partial => "message", :as => :message
end
json.partial! "api/root_attributes"
-json.messages(@messages) do |message|
- json.partial! message
+json.messages do
+ json.array! @messages, :partial => "message", :as => :message
end
json.type "FeatureCollection"
-json.features(@notes) do |note|
- json.partial! note
+json.features do
+ json.array! @notes, :partial => "note", :as => :note
end
json.partial! "api/root_attributes"
-json.users(@users) do |user|
- json.partial! user
+json.users do
+ json.array! @users, :partial => "user", :as => :user
end