sean@iheartsquares.com
2006-Apr-13 17:25 UTC
[Rails] Re: One model won''t work like the others, generating weird e
Rails assumes tables that have a column called type are using a single inheritance pattern. For example, if you had a model called Article and then had a model called News and another called Feature that both inherit from Article. You can use a single table to represent both child types data. The type column tells rails which model should be used to create the object. sean -----Original Message----- From: "Chris Hartjes" <chartjes@gmail.com> To: rails@lists.rubyonrails.org Sent: 4/13/2006 11:21 AM Subject: [Rails] Re: One model won''t work like the others, generating weird e (wow, answering oneself is so weird) Turns out the problem was that one of the fields in the table was called ''type'', and for whatever reason Rails didn''t like it. Chris Hartjes wrote:> > Any thoughts? Suggestions? This is driving me nucking futs.-- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails .