update rails to 3.2.12 & fix one bug