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 Michaux <petermichaux@gmail.com> 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 Dyk wrote:> On 1/14/06, Peter Michaux <petermichaux@gmail.com> wrote: >> I haven''t updated rails today and all of a sudden scaffold is >> pluralizing my namesThat 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 -- Posted via http://www.ruby-forum.com/.