Scaffold suddenly pluralizing names

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

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs