[Rails] Re: One model won't work like the others, generating weird e

sean at iheartsquares.com sean at iheartsquares.com
Thu Apr 13 17:25:35 GMT 2006


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 at gmail.com>
To: rails at 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 at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails

.




More information about the Rails mailing list