Search code examples
ruby-on-railsruby-on-rails-3osx-snow-leopardgmaps4rails

undefined local variable or method 'acts_as_gmappable'


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


Solution

  • Restarting the server should resolve the problem :)