undefined local variable or method 'acts_as_gmappable'

Posted by MRJ on Stack Overflow See other posts from Stack Overflow or by MRJ
Published on 2011-06-20T18:03:35Z Indexed on 2012/09/16 9:38 UTC
Read the original article Hit count: 287

I attempted to install the gmaps4rails gem.

I added gem 'gmaps4rails' to my Gemfile, and ran 'bundle install. It said that my bundle installed successfully. I can find "Using gmaps4rails (0.8.8)" with 'gem list'. I added the specified columns to my users table with rake db:migrate and added acts_as_gmappable and the gmaps4rails_address method to my User model.

Visiting pages that involve the user model gives me "undefined local variable or method 'acts_as_gmappable'"error.

Is there something that I am missing?

For greater context, the code I am using is from the Rails 3 Tutorial.

OS X 10.6.6
ruby 1.8.7
rails 3.0.7
passenger 3.0.7

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-3