Merge rails_port_0.5
[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