updated rails; small style fixes