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.

Revisions

  1. tmking created this gist Jul 8, 2009.
    11 changes: 11 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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