Introducing Include_Google_JS for Ruby on Rails
June 24th, 2008Alright, I put this out a few weeks ago, but I never bothered to write up a blog post for it, and I have no excuse for that.
Include_Google_JS is a plugin for Ruby on Rails that will use Google's hosted copies of the major Javascript libraries.
All you have to do is add :include_google_js => true to javascript_include_tag in your layout and you're in business.
Upcoming features will include:
- The ability use more than the default JS libraries (Prototype and Scriptaculous) when using :all or when files are declared.
- Version checking to include the right version of the library as what is contained in /public/javascripts.
I'm also hoping to submit this is as a patch to core soon.
