]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/relation_tag_controller.rb
preliminary commit 0.5 API with relations / untested after entity-relation rename...
[rails.git] / app / controllers / relation_tag_controller.rb
diff --git a/app/controllers/relation_tag_controller.rb b/app/controllers/relation_tag_controller.rb
new file mode 100644 (file)
index 0000000..c58364c
--- /dev/null
@@ -0,0 +1,9 @@
+class RelationTagController < ApplicationController
+  layout 'site'
+
+  def search
+    @tags = RelationTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
+  end
+
+
+end