Skip to content
bsag edited this page Jul 16, 2011 · 5 revisions

Upgrading jQuery

Upgrading jQuery is done by hand and involves the following steps:

  • download latest min version of jQuery from http://jquery.com
  • save it to public/javascripts
  • remove old js: git rm public/javascripts/jquery-XX.min.js
  • change ref to jquery javascripts in
    • app/views/layouts/login.html.erb
    • app/views/layouts/standard.html.erb

Upgrading jQueryUI by hand involves the following steps:

  • download the ui zip from jqueryui.com using the custom download
    • check all modules
    • select Sunny as the theme
    • select the latest version
    • click download
  • remove old ui files
    • git rm -r public/stylesheets/images
    • git rm public/stylesheets/jquery-ui-XX.custom.js
    • git rm public/javascripts/jquery-ui-XX.custom.min.js
  • add new ui files
    • from /css/sunny in the zip copy all (css and images) to public/stylesheets. Yes the images need to be in this stylesheets directory for jQuery to find them
    • from /js in the zip copy only jquery-ui-XX.min.js to public/javascripts
  • change ref to jquery-ui javascripts AND stylesheets in
    • app/views/layouts/standard.html.erb

Test Tracks (rake cucumber:selenium) and enjoy

Remember to clear the cache on production environments!

Clone this wiki locally