]> git.openstreetmap.org Git - rails.git/commitdiff
Create XML documents properly.
authorTom Hughes <tom@compton.nu>
Tue, 26 Jun 2007 17:43:24 +0000 (17:43 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 26 Jun 2007 17:43:24 +0000 (17:43 +0000)
app/controllers/search_controller.rb

index f88340fb6a6c3a49f6131950e637569f77a31bc3..cb97624f95e984905b687d6bdef6098273ec766c 100644 (file)
@@ -3,7 +3,6 @@ class SearchController < ApplicationController
   # Can search by tag k, v, or both (type->k,value->v)
   # Can search by name (k=name,v=....)
 
-  before_filter :authorize
   after_filter :compress_output
 
   def search_all
@@ -109,7 +108,7 @@ class SearchController < ApplicationController
 
 
     # Print
-    doc = OSM::API.get_xml_doc
+    doc = OSM::API.new.get_xml_doc
     nodes.each do |node|
       doc.root << node.to_xml_node()
     end