projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e976a6d
)
Create XML documents properly.
author
Tom Hughes
<tom@compton.nu>
Tue, 26 Jun 2007 17:43:24 +0000
(17:43 +0000)
committer
Tom Hughes
<tom@compton.nu>
Tue, 26 Jun 2007 17:43:24 +0000
(17:43 +0000)
app/controllers/search_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/search_controller.rb
b/app/controllers/search_controller.rb
index f88340fb6a6c3a49f6131950e637569f77a31bc3..cb97624f95e984905b687d6bdef6098273ec766c 100644
(file)
--- a/
app/controllers/search_controller.rb
+++ b/
app/controllers/search_controller.rb
@@
-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