+++ /dev/null
-class ChangesetTagController < ApplicationController
- layout 'site'
-
- def search
- @tags = ChangesetTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
- end
-
-end
+++ /dev/null
-class OldRelationTagController < ApplicationController
-
-end
+++ /dev/null
-class OldWayTagController < ApplicationController
-end
+++ /dev/null
-class RelationTagController < ApplicationController
- layout 'site'
-
- def search
- @tags = RelationTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
- end
-
-
-end
+++ /dev/null
-class WayTagController < ApplicationController
- layout 'site'
-
- def search
- @tags = WayTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
- end
-
-
-end
+++ /dev/null
-<h2>Search results</h5>
-fixme postcodes and geonames
-
-<% form_tag :controller => 'way_tag', :action => 'search' do %>
-<%= text_field 'query', 'query'%>
-<%= submit_tag 'Search' %>
-<% end %>
-
-
-<table border="0">
- <% @tags.each do |tag| %>
- <tr>
- <td>
- <%= link_to tag.v, :controller => 'site', :action => 'goto_way', :id => tag.id %> (k:<%= tag.k %>)<br>
- <font size="-2" color="green">
- 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 %>
- <br /><br/ >
- </font>
- </td>
- </tr>
- <% end %>
-</table>
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'