maciej / eschaton forked from yawningman/eschaton

'the es.cha.ton' - google maps on rails with hotness

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file MIT-LICENSE Thu Aug 28 10:27:07 -0700 2008 Bogus updates to test script/plugin update [yawningman]
file NOTES.textile
file README.rdoc Tue Nov 18 11:12:33 -0800 2008 Back to a boring readme [yawningman]
file Rakefile
directory generators/
file init.rb Tue Nov 11 04:31:57 -0800 2008 Dependency to work with both edge and 2.1 rails... [yawningman]
file install.rb Thu Jun 12 06:39:26 -0700 2008 my first commit [yawningman]
directory lib/
directory slices/
directory tasks/ Thu Aug 14 06:28:31 -0700 2008 Moved a number of tests around to a more standa... [yawningman]
directory test/
file uninstall.rb Thu Jun 12 06:39:26 -0700 2008 my first commit [yawningman]
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