在脚手架复合js的路线中拼写错误问题

我是新的节点和复合。 当我试图脚手架

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 

但现在发生的错误是以路线的名义

  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 

这些是我得到的路线。

为什么?

它看起来像化合物是把你的模型名称复数(=叶),然后,而不是使用您提供的单数名称,把这个复数名称,导致“叶”。

这有意义吗? ;-)还是我得到你问题错了?

如果你可以提供“一些错误”和完整的错误信息,这将是更容易帮助;)

顺便说一句,我刚刚经历过使用骆驼案例模型似乎不是一个好主意compound.js。 它在某些地方(例如控制器内部)添加了camelcase,但是在其他地方(schema.js)则创build了一些错误的应用程序。