Node.js 脚手架复合js时管线中的拼写错误问题

Node.js 脚手架复合js时管线中的拼写错误问题,node.js,routes,scaffolding,railway.js,compoundjs,Node.js,Routes,Scaffolding,Railway.js,Compoundjs,我是新的节点和复合。当我试图断头台的时候 compound g crud leaveApplication leave_code:string description:string applicable:string carry_forward:boolean limit_type:boolean lop:boolean od:boolean co:boolean leave_revision:boolean active:boolean 我犯了一些错误,然后我试着 compound g cr

我是新的节点和复合。当我试图断头台的时候

compound g crud leaveApplication leave_code:string description:string applicable:string carry_forward:boolean limit_type:boolean lop:boolean od:boolean co:boolean leave_revision:boolean active:boolean
我犯了一些错误,然后我试着

compound g crud leave code:string description:string applicable:string cForward:boolean limit:boolean lop:boolean od:boolean co:boolean leave_revision:boolean active:boolean
但现在发生的错误是以routes的名义出现的

        leaves GET    /leaves.:format?                     leaves#index
        leaves POST   /leaves.:format?                     leaves#create
     new_leafe GET    /leaves/new.:format?                 leaves#new
    edit_leafe GET    /leaves/:id/edit.:format?            leaves#edit
         leafe DELETE /leaves/:id.:format?                 leaves#destroy
         leafe PUT    /leaves/:id.:format?                 leaves#update
         leafe GET    /leaves/:id.:format?                 leaves#show
这些就是我要走的路线


为什么会这样?

看起来component将您的型号名称转换为复数(=叶子),然后,不再使用您提供的单数名称,而是将复数名称转换为“叶子”

这有什么意义吗?;-)还是我把你的问题搞错了

如果您可以提供“一些错误”和完整的错误消息,那么会更容易提供帮助;)

顺便说一句,我刚刚体验到,在component.js中使用camel case作为模型似乎不是一个好主意。
它在某些地方(例如控制器内部)管理camelcase,但在其他地方(schema.js)创建的应用程序有一些错误…

看起来component正在将您的模型名转换为复数(=叶),然后,不再使用您提供的单数名,而是将复数名转换回,从而产生“叶”

这有什么意义吗?;-)还是我把你的问题搞错了

如果您可以提供“一些错误”和完整的错误消息,那么会更容易提供帮助;)

顺便说一句,我刚刚体验到,在component.js中使用camel case作为模型似乎不是一个好主意。
它在某些地方(例如控制器内部)管理camelcase,但在其他地方(schema.js)不管理camelcase,而是创建了一个有一些错误的应用程序…

这是CompoundJS的已知错误问题这是CompoundJS的已知错误问题