README.md in jquery-rails-google-cdn-0.0.5 vs README.md in jquery-rails-google-cdn-0.0.6
- old
+ new
@@ -57,10 +57,32 @@
```html
<%= jquery_include_tag Rails.application.config.jquery_version %>
<%= javascript_include_tag "application" %>
```
-It will generate the following across all modes production, testing, and development:
+- Please verify you do not have a duplicate `application` js include as this can cause issues with libraries down the road like ember. Here is an example layout of a rails 4 application:
+
+```html
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Demoapp</title>
+ <%= jquery_include_tag Rails.application.config.jquery_version %>
+ <%= jquery_ui_include_tag Rails.application.config.jquery_ui_version %>
+ <%= javascript_include_tag "application" %>
+ <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
+ <%= javascript_include_tag "data-turbolinks-track" => true %>
+ <%= csrf_meta_tags %>
+</head>
+<body>
+
+<%= yield %>
+
+</body>
+</html>
+```
+
+The gem will generate the following across all modes production, testing, and development:
```html
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script>
//<![CDATA[