Created
February 12, 2012 18:56
-
-
Save drale2k/1810253 to your computer and use it in GitHub Desktop.
Revisions
-
drale2k revised this gist
Feb 12, 2012 . 1 changed file with 11 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ def index if params[:near] @locations = Location.near( params[:near], # Latitude, Longitude params[:radius] ? params[:radius].to_i : 10, :units => :km ) else @locations = Location.all end end -
drale2k created this gist
Feb 12, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ def index if params[:near] @locations = Location.near( params[:near], # Latitude, Longitude params[:radius] ? params[:radius].to_i : 10, :units => :km ) else @locations = Location.all end end