change rails dependency to >= 3