apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

enable_assets on Rails 3.1.1+ #102

Closed nofxx closed 13 years ago

nofxx commented 13 years ago

Need to set "false, false" to disable assets when using the gmaps() view helper in rails 3.1.1.rc2 Otherwise:

ActionView::Template::Error (gmaps4rails.css isn't precompiled):
    1: <% #thanks to enable_css, user can avoid this css to be loaded
    2: if enable_css == true and options[:scripts].nil? %>
    3:  <% content_for :head do %>
    4:  <%= stylesheet_link_tag 'gmaps4rails' %>
    5:  <% end %>
    6: <% end %>
    7: <% content_for :scripts do %>

I got gmaps4rails required in application.css.

Thanks for this nice gem.

apneadiving commented 13 years ago

Thanks, it's solved in 1.3.0