maciej / eschaton forked from yawningman/eschaton
- Source
- Commits
- Network (12)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
eschaton /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | Thu Aug 28 10:27:07 -0700 2008 | |
| |
NOTES.textile | ||
| |
README.rdoc | Tue Nov 18 11:12:33 -0800 2008 | |
| |
Rakefile | ||
| |
generators/ | ||
| |
init.rb | Tue Nov 11 04:31:57 -0800 2008 | |
| |
install.rb | Thu Jun 12 06:39:26 -0700 2008 | |
| |
lib/ | ||
| |
slices/ | ||
| |
tasks/ | Thu Aug 14 06:28:31 -0700 2008 | |
| |
test/ | ||
| |
uninstall.rb | Thu Jun 12 06:39:26 -0700 2008 |
README.rdoc
.__ __
____ ______ ____ | |__ _____ _/ |_ ____ ____
_/ __ \ / ___// ___\| | \\__ \\ __\/ _ \ / \
\ ___/ \___ \\ \___| Y \/ __ \| | ( <_> ) | \
\___ >____ >\___ >___| (____ /__| \____/|___| /
\/ \/ \/ \/ \/ eschaton | cusp \/
eschaton => google maps on rails with hotness
Helps with writing google map mashups in Rails bringing together the power of Google Maps and Rails.
Visit the wiki for more info.
map = Google::Map.new(:center => {:latitude => -33.947, :longitude => 18.462},
:controls => [:small_map, :map_type])
map.click do |script, location|
marker = map.add_marker :location => location
marker.open_info_window :text => 'Awesome, you added a marker!'
end
Get it…
For Rails 2.1 and up
$ script/plugin install git://github.com/yawningman/eschaton.git
Older versions of Rails
$ cd vendor/plugins $ git clone git://github.com/yawningman/eschaton.git
Get going…
Generate a map, look at the files the generator created and play a bit.
$ script/generate map
Visit the map at localhost:3000/map or wherever your server runs.
Generate and review the docs, put some test code in the app/helpers/map_helper.rb and play!
$ cd vendor/plugins/eschaton/ $ rake rdoc $ rake open_doc

