Module: Appsta::JQuery

Included in:
Appsta
Defined in:
lib/appsta/jquery.rb

Instance Method Summary collapse

Instance Method Details

#use_jquery(version = "1.3.2") ⇒ Object

This removes existing built-in JS and switches to jQuery for your Rails app



4
5
6
7
# File 'lib/appsta/jquery.rb', line 4

def use_jquery(version = "1.3.2")
  run "rm -f public/javascripts/*"
  run "curl -s -L http://jqueryjs.googlecode.com/files/jquery-#{version}.min.js > public/javascripts/jquery.js"
end