title: 'gmaps4rails' undefined local variable or method 'acts_as_gmappable' rails 3.2.1 routing error
body: <p>just playing around with the gem 'gmaps4rails' but I'm getting the following routing error</p>
  
  <pre><code>undefined local variable or method `acts_as_gmappable'
  </code></pre>
  
  <p>I've performed the following steps:
  1) added the following to the Gemfile: gem 'gmaps4rails' and bundled
  2) generated scaffold Location
  3) added the following to my model, location.rb then db:migrate</p>
  
  <pre><code>class Location &lt; ActiveRecord::Base
    attr_accessible :address, :latitude, :longitude
    acts_as_gmappable
  
    def gmaps4rails_address
      address
    end
  end
  </code></pre>
  
  <p>5) changed my root to the following and deleted the old index file </p>
  
  <pre><code>root :to =&gt; 'locations#index'
  </code></pre>
  
  <p>6) added the following to  the body of aplication.html.erb</p>
  
  <pre><code>&lt;%= yield :scripts %&gt;
  </code></pre>
  
  <p>Seems like it can't find the methods in the gem I installed?</p>
  
  <p>I'm using gmaps4rails v2.0.3, ruby v1.9.3, rails 3.2.1</p>
  
  <p>I've looked on similar topics on stackoverflow and performed simple tasks such as restarting server etc but still the same error.</p>
  
  <p>@apneadiving maybe you could help?</p>
  
  <p>Many thanks</p>