Sha256: 2e3d2deee897beae508d9e471aadcedfdb54d79a532f3fd8a4d19ecca9c976ec
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
== Gmaps4rails GEM NOT READY YET. It's still in heavy dev and I have a bug with engines (I can't find enough doc on this topic). See http://github.com/krschacht/rails_3_engine_demo/issues/issue/3/ for the bug report. Gmaps4rails is developed to simply create a map with model instances (say Users). == Installation gem install gmaps4rails == Requirements - jQuery (for ajax json) - <%= yield :head %> in your header == Examples === In your model acts_as_gmappable def gmaps4rails_address self.address #describe how to retrieve the address from your model end def gmaps4rails_picture self.picture #describe how to retrieve the picture from your model end def gmaps4rails_description self.name #could be html end === Create a migration and add the following fields to your table: t.string "gmaps4rails_latitude" t.string "gmaps4rails_longitude" t.boolean "gmaps" === In your view <%= render :partial => 'gmaps4rails/gmaps4rails', :locals => { :model => "User"} %> == Todo Many customization will be available (at least, those already developed but not written here): - Marker Cluster available - integration of scopes to decide what you want to display precisely - distance filter == Copyright Copyright (c) 2010 apneadiving. See LICENSE for details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gmaps4rails-0.0.14 | README.rdoc |
gmaps4rails-0.0.13 | README.rdoc |