I have fixed some code in the scripts which are used to generate scaffolding / controllers / models / etc. Essentially, the scripts now are sensitive to the environment.rb''s pluralize setting: ActiveRecord::Base.pluralize_table_names = false Previously, it would pluralize certain names regardless of this setting. How do I submit a patch / get the code in the hands of someone who can? Here''s the affected files: rails-0.13.1/lib/rails_generator/base.rb, line198 should be: plural = ActiveRecord::Base.pluralize_table_names ? under.pluralize : under; rails-0.13.1/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb, line 49 should be: @controller_name = args.shift || (ActiveRecord::Base.pluralize_table_names ? @name.pluralize : @name) TIA -- Brock Weaver
I''m sorry, I forgot to mention, I''m on Windows right now. Is there a subversion client (I just read the patch submission process on rubyonrails.com) On 8/18/05, Brock Weaver <brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have fixed some code in the scripts which are used to generate > scaffolding / controllers / models / etc. > > Essentially, the scripts now are sensitive to the environment.rb''s > pluralize setting: > > ActiveRecord::Base.pluralize_table_names = false > > Previously, it would pluralize certain names regardless of this setting. > > How do I submit a patch / get the code in the hands of someone who can? > Here''s the affected files: > > rails-0.13.1/lib/rails_generator/base.rb, line198 should be: > plural = ActiveRecord::Base.pluralize_table_names ? > under.pluralize : under; > > rails-0.13.1/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb, > line 49 should be: > @controller_name = args.shift || > (ActiveRecord::Base.pluralize_table_names ? @name.pluralize : @name) > > TIA > > -- > Brock Weaver >-- Brock Weaver http://www.circaware.com
TortoiseSVN is a nice windows client, you can find it http://tortoisesvn.tigris.org/ Chris On 8/18/05, Brock Weaver <brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m sorry, I forgot to mention, I''m on Windows right now. Is there a > subversion client (I just read the patch submission process on > rubyonrails.com) > > On 8/18/05, Brock Weaver <brockweaver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I have fixed some code in the scripts which are used to generate > > scaffolding / controllers / models / etc. > > > > Essentially, the scripts now are sensitive to the environment.rb''s > > pluralize setting: > > > > ActiveRecord::Base.pluralize_table_names = false > > > > Previously, it would pluralize certain names regardless of this setting. > > > > How do I submit a patch / get the code in the hands of someone who can? > > Here''s the affected files: > > > > rails-0.13.1/lib/rails_generator/base.rb, line198 should be: > > plural = ActiveRecord::Base.pluralize_table_names ? > > under.pluralize : under; > > > > rails-0.13.1/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb, > > line 49 should be: > > @controller_name = args.shift || > > (ActiveRecord::Base.pluralize_table_names ? @name.pluralize : @name) > > > > TIA > > > > -- > > Brock Weaver > > > > > -- > Brock Weaver > http://www.circaware.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >