If a search only finds one result then jump straight to it instead of
[rails.git] / app / views / geocoder / _results.rhtml
similarity index 93%
rename from app/views/geocoder/search.rhtml
rename to app/views/geocoder/_results.rhtml
index 7ffde3194b8117a8557ed3a82d100ff700352019..477f2a0bcb4f56a7a87a44ecefc4525d68895f5e 100644 (file)
@@ -1,4 +1,4 @@
-<% @results.each do |source| %>
+<% results.each do |source| %>
 <p class="search_results_heading">Results from <%= link_to source[:source], source[:url] %></p>
 <% if source[:results] %>
 <% if source[:results].empty? %>