The issue, as explained in issue apneadiving#50, is that the asset pipeline is trying to load the provider javascript files before the base gmaps4rails javascript.
I decided to
rename gmaps4rails.js to gmaps4rails.base.js to account for this fact
the calls to yield :head and yield :scripts now check for Rails 3.1 and the asset pipeline, outputting the correct code.
the generate copies assets to the correct folder (app/assets or public) based on the Rails version.
Not completely sure this is the best approach, but it works and I'm currently using it for a Rails 3.1 project successfully.
The issue, as explained in issue apneadiving#50, is that the asset pipeline is trying to load the provider javascript files before the base gmaps4rails javascript.
I decided to
gmaps4rails.js
togmaps4rails.base.js
to account for this factyield :head
andyield :scripts
now check for Rails 3.1 and the asset pipeline, outputting the correct code.Not completely sure this is the best approach, but it works and I'm currently using it for a Rails 3.1 project successfully.