using rails 3.2