]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_tag_controller.rb
Make traces/mine redirect to the user's traces page instead of rendering
[rails.git] / app / controllers / way_tag_controller.rb
index 16763b3565fce40e112161c125997d984698971c..02e7a685260cfbb015183099e258973427031b4b 100644 (file)
@@ -1,2 +1,9 @@
 class WayTagController < ApplicationController
+  layout 'site'
+
+  def search
+    @tags = WayTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
+  end
+
+
 end