Rails3.1 to Rails3.2