refined generator to use rails active support inflectors