Skip to content

Instantly share code, notes, and snippets.

@johnrees
Created June 12, 2012 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnrees/2920103 to your computer and use it in GitHub Desktop.
Save johnrees/2920103 to your computer and use it in GitHub Desktop.
Google AJAX Jquery CDN for Rails 3 App
<!--
1. REMOVE //= require jquery IN application.js
2. ADD config.assets.precompile += %w( jquery.js ) IN production.rb
-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write("<%= j javascript_include_tag "jquery" %>")</script>
<%= javascript_include_tag "application" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment