title: Using gmaps4rails with Active Admin, no maps
body: <p>I am trying to get <a href="https://github.com/apneadiving/Google-Maps-for-Rails" rel="nofollow">gmaps4rails</a> with <a href="http://activeadmin.info/" rel="nofollow">Active Admin</a> in Rails Rails 3.2.8.</p>
  
  <p>I have been trying to follow <a href="http://kalapun.com/blog/2012/05/17/rails-maps-and-activeadmin/" rel="nofollow">this tutorial</a> but have needed to adapt it as I am using mysql in my stack.</p>
  
  <p>I am not getting any errors (which might help!) but I am also not getting any maps. </p>
  
  <p>My model (<strong>location</strong>) has the attributes <em>longitude:float, langitude:float</em> and <em>gmaps:boolean</em></p>
  
  <p>I have added the following to the locations model, which is different to the tutorial:</p>
  
  <pre><code>def location
      [:latitude, :longitude]
  end
  </code></pre>
  
  <p>and this to the active admin locations model, also different from the tutorial:</p>
  
  <pre><code>f.input :location do |o|
             gmaps("markers" =&gt; {data: o.to_gmaps4rails}, "map_options" =&gt;  { auto_zoom: false, zoom: 15 })
       end
  </code></pre>
  
  <p>As far as I can tell (by scanning through the rendered source files) the CSS and JavaScript seem to be loading.</p>
  
  <p>The whole app is available <a href="https://bitbucket.org/mildfuzz/aperture_current" rel="nofollow">here</a></p>
  
  <p>Other that those changes, I think I have stuck to the tutorial.</p>