xml.instruct! xml.osm(:version => API_VERSION, :generator => GENERATOR) do |osm| osm << render(:partial => "note", :object => @note) end