forked from apneadiving/Google-Maps-for-Rails
-
Notifications
You must be signed in to change notification settings - Fork 0
What about Rails 2.x ?
rsierra edited this page Dec 27, 2011
·
3 revisions
A great blog post has been written about this subject. Check this link
To add acts_as_gmappable
in your models, [check this gist] (https://gist.github.com/1521322)
WARNING: You will probably need to update gmaps4rails partial to the last version in the gem, and fix rails 3 sintax, like
<% case options[:map_options].try(:[], :provider)
when "openlayers" %>
instead
<% case options[:map_options].try(:[], :provider) %>
<% when "openlayers" %>