rake should be rails

generate is part of rails and not rake.