using rails 3