Update rails.js to use .on() for jQuery 1.9.0