fixing it up to run rails 3.2.*