Skip to content

Instantly share code, notes, and snippets.

@tmking
Created July 8, 2009 17:44
Show Gist options
  • Save tmking/143008 to your computer and use it in GitHub Desktop.
Save tmking/143008 to your computer and use it in GitHub Desktop.
def locate
# @map = GMap.new("map_div")
# @map.control_init(:large_map => false, :map_type => true)
# @map.center_zoom_init([lat,lng],4)
@target_zip = params[:locate][:zip]
@store_list = Store.find(
:all, :origin => @target_zip,
:order => 'distance',
:conditions => 'distance < 70')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment