gmaps4rails
railsでgooglemapを使う時に便利なこのgem
https://github.com/apneadiving/Google-Maps-for-Rails
しかし普通に入れても、下記のエラーになる。
a is not define
解決法
headerで読み込む前にjavascriptにapplication.jsを読み込ませないとload出来ない。
headerに下記を追加
application.html.erb
<head>
<%= javascript_include_tag "application" %>