Upgrade rails to 3.2.12

Upgrades rails and fixes a couple JS requirement issues in HTML code