Displaying 4 results from an estimated 4 matches for "gmaps4rails".
2011 Sep 19
14
gmaps4rails "acts_as_gmappable" error
Hi all,
I started to see fun of gmaps4rails gem from
https://github.com/apneadiving/Google-Maps-for-Rails.
After everything done. When visited the locahost, i got the following
error.
undefined local variable or method `acts_as_gmappable'' for #<Class:
0x31a9da8>
the error is due to i have line "acts_as_gmappable"...
2013 Mar 04
2
Model/google maps display
Hi all,
I''m building a ror app and have a model with geo-coordinates would like to
use the info in the model to generate a google map view, does anyone know
what''s the best way to go round this?
is is Google API?, I''ve also seen a gmaps4rails, any comments?
Thank you in advance,
Jax
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez...
2011 Apr 16
0
[announcement] Google Maps + Rails 3 = gmaps4rails
Just FYI I created a gem to easily integrate google maps within
Rails3:
- geocode
- display styled markers, polylines, polygons, destinations...
There is much configuration to fit your needs.
It was presented here: http://rubyshow.com/episodes/157
The source is here: https://github.com/apneadiving/Google-Maps-for-Rails
Wiki is here: https://github.com/apneadiving/Google-Maps-for-Rails/wiki
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
...All,
just in a spot of bother with this gem, I am trying to create a new
location and get the above msg.
here is my controller:
class LocationsController < ApplicationController
# GET /locations
# GET /locations.json
def index
@locations = Location.all
@json = Location.all.to_gmaps4rails
end
respond_to do |format|
format.html # index.html.erb
format.json { render json: @locations }
end
end
# GET /locations/1
# GET /locations/1.json
def show
@location = Location.find(params[:id])
@json = Location.all.to_gmaps4rails
respond_to do |format|...