dracos
1
I haven’t updated rails today and all of a sudden scaffold is
pluralizing my names
ruby script/generate scaffold Admin::Category
produces
class Admin::CategoriesController < ApplicationController
Do I really want “CategoriesController” instead of “CategoryController”?
Thanks,
Peter
dracos
2
On 1/14/06, Peter M. [email protected] wrote:
I haven’t updated rails today and all of a sudden scaffold is
pluralizing my names
ruby script/generate scaffold Admin::Category
produces
class Admin::CategoriesController < ApplicationController
Do I really want “CategoriesController” instead of “CategoryController”?
I think it always did that.
dracos
3
Joe Van D. wrote:
On 1/14/06, Peter M. [email protected] wrote:
I haven’t updated rails today and all of a sudden scaffold is
pluralizing my names
That is the standard behavior. If you repeat the name again, it will
use your definition instead.
ruby script/generate scaffold Admin::Category Admin::Category
Should avoid pluralization.
_Kevin