forked from lashleigh/parks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I moved the loading of the map to globalMap.js where it is defined as a
global vairiable, accessible to both the map.js (which I should rename search) and parks.js (which draws the parks on the map).
- Loading branch information
Ashleigh Baumgardner
committed
Jun 30, 2010
1 parent
848cd4e
commit f1d159c
Showing
8 changed files
with
492 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
class HomeController < ApplicationController | ||
def index | ||
@parks = Park.find(:all).collect do |p| | ||
{"id" => p.id, | ||
"url" => p.site_url, | ||
"latitude" => p.latitude, | ||
"longitude" => p.longitude, | ||
"name" => p.name | ||
} | ||
end | ||
end | ||
|
||
end |
This file contains 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 characters
This file contains 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 characters
Binary file not shown.
Oops, something went wrong.