upgrades rails. also fixes a couple little things