Skip to content

Commit

Permalink
add action for search_start_year
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeLynSchatz committed Jun 27, 2014
1 parent 4a2ca90 commit e152753
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/geocoder_controller.rb
Expand Up @@ -12,7 +12,6 @@ class GeocoderController < ApplicationController
def search
normalize_params

# need to add something here that will accept the start_year
@sources = []
puts "the value of :query is #{:query}"
if params[:lat] && params[:lon]
Expand Down Expand Up @@ -224,6 +223,12 @@ def search_geonames
@error = "Error contacting ws.geonames.org: #{ex.to_s}"
render :action => "error"
end

# it's a start. Yes, it's also a pun.
def search_start_year
# use start_year as a way to select tiles
render :action =>"results"
end

def search_osm_nominatim_reverse
# get query parameters
Expand Down

0 comments on commit e152753

Please sign in to comment.