json.partial! "api/root_attributes" json.elements(@elems) do |old_relation| json.partial! old_relation end