upgraded to rails version 3.2 as per rails guide
fixed consequences of upgrade
fixed broken tests