Created
September 17, 2013 21:00
-
-
Save fiedl/6600555 to your computer and use it in GitHub Desktop.
gmaps4rails with turbolinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* app/assets/stylesheets/application.css | |
* | |
* ... | |
*= require_self | |
*= require gmaps4rails | |
*= require_tree . | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- app/views/layouts/application.html.erb --> | |
<html> | |
<head> | |
... | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= gmaps4rails_api_script_tags # <-- THIS IS NEW ----------------- %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> | |
... | |
<%= yield %> | |
<%= yield :scripts %> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/assets/javascripts/application.js | |
// | |
// ... | |
//= require jquery | |
//= require jquery_ujs | |
//= require turbolinks | |
// | |
// make sure to include these scripts if they are installed to vendor/assets rather than app/assets: | |
//= require gmaps4rails/base | |
//= require gmaps4rails/google | |
//= require_tree . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
gem 'turbolinks' | |
gem 'gmaps4rails', '~> 2.0.1', git: 'https://github.com/fiedl/Google-Maps-for-Rails' | |
# then run 'bundle install' and restart the rails server. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i have this partial in my view(slim)
and places library doesn't load