Add rails 3 as dependency.