Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 771
MRJ Avatar asked Jun 20 '11 18:06

MRJ


1 Answers

Restarting the server should resolve the problem :)

like image 102
dexter Avatar answered Oct 13 '22 20:10

dexter