From: Tom Hughes Date: Thu, 9 Sep 2010 20:32:15 +0000 (+0100) Subject: Remove unused/non-functional tag searching methods X-Git-Tag: live~6292^2~12 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b477cd549219289a11621f2bf8d2bbf404d844ce Remove unused/non-functional tag searching methods --- diff --git a/app/controllers/changeset_tag_controller.rb b/app/controllers/changeset_tag_controller.rb deleted file mode 100644 index 374e21ca1..000000000 --- a/app/controllers/changeset_tag_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class ChangesetTagController < ApplicationController - layout 'site' - - def search - @tags = ChangesetTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] ) - end - -end diff --git a/app/controllers/old_relation_tag_controller.rb b/app/controllers/old_relation_tag_controller.rb deleted file mode 100644 index fba59a043..000000000 --- a/app/controllers/old_relation_tag_controller.rb +++ /dev/null @@ -1,3 +0,0 @@ -class OldRelationTagController < ApplicationController - -end diff --git a/app/controllers/old_way_tag_controller.rb b/app/controllers/old_way_tag_controller.rb deleted file mode 100644 index 02c1e2e65..000000000 --- a/app/controllers/old_way_tag_controller.rb +++ /dev/null @@ -1,2 +0,0 @@ -class OldWayTagController < ApplicationController -end diff --git a/app/controllers/relation_tag_controller.rb b/app/controllers/relation_tag_controller.rb deleted file mode 100644 index c58364c4a..000000000 --- a/app/controllers/relation_tag_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -class RelationTagController < ApplicationController - layout 'site' - - def search - @tags = RelationTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] ) - end - - -end diff --git a/app/controllers/way_tag_controller.rb b/app/controllers/way_tag_controller.rb deleted file mode 100644 index 02e7a6852..000000000 --- a/app/controllers/way_tag_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -class WayTagController < ApplicationController - layout 'site' - - def search - @tags = WayTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] ) - end - - -end diff --git a/app/views/way_tag/search.html.erb b/app/views/way_tag/search.html.erb deleted file mode 100644 index 820bad7db..000000000 --- a/app/views/way_tag/search.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -

Search results

-fixme postcodes and geonames - -<% form_tag :controller => 'way_tag', :action => 'search' do %> -<%= text_field 'query', 'query'%> -<%= submit_tag 'Search' %> -<% end %> - - - - <% @tags.each do |tag| %> - - - - <% end %> -
- <%= link_to tag.v, :controller => 'site', :action => 'goto_way', :id => tag.id %> (k:<%= tag.k %>)
- - Way <%= tag.id %> (<%= tag.way.timestamp %>) - <%= link_to 'Map', :controller => 'site', :action => 'goto_way', :id => tag.id %> - - <%= link_to 'API', :controller => 'way', :action => 'rest', :id => tag.id %> -

-
-
diff --git a/config/routes.rb b/config/routes.rb index e2018784d..4608fb32c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -113,7 +113,6 @@ ActionController::Routing::Routes.draw do |map| map.connect '/index.html', :controller => 'site', :action => 'index' map.connect '/edit.html', :controller => 'site', :action => 'edit' map.connect '/export.html', :controller => 'site', :action => 'export' - map.connect '/search.html', :controller => 'way_tag', :action => 'search' map.connect '/login.html', :controller => 'user', :action => 'login' map.connect '/logout.html', :controller => 'user', :action => 'logout' map.connect '/create-account.html', :controller => 'user', :action => 'new'