I just started using rails. It looks very nice, but I have a question about ActiveRecord. I''m using dutch table names. I don''t think the inflector module can convert this from singular to plurar. Is it possible to just use singular table names and just disable this in the inflector module? I''m always using singular table names anyway. -- Roeland
> I''m always using singular table names anyway.Include this in your environment file: ActiveRecord::Base.pluralize_table_names = false -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://macromates.com/ -- TextMate: Code and markup editor (OS X) http://www.loudthinking.com/ -- Broadcasting Brain
On Wed, Dec 15, 2004 at 12:32:11PM +0100, David Heinemeier Hansson wrote:> >I''m always using singular table names anyway. > > Include this in your environment file: > > ActiveRecord::Base.pluralize_table_names = falseThanks, it''s so simple. I should have find that in the very nice rdoc -- Roeland
> I should have find that in the very nice rdocYou can find all the configuration options under "Attributes" in http://ar.rubyonrails.org/classes/ActiveRecord/Base.html -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://macromates.com/ -- TextMate: Code and markup editor (OS X) http://www.loudthinking.com/ -- Broadcasting Brain