Scaffold suddenly pluralizing names


#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


#2

On 1/14/06, Peter M. removed_email_address@domain.invalid 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.


#3

Joe Van D. wrote:

On 1/14/06, Peter M. removed_email_address@domain.invalid 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