On May 1, 7:09 am, Amita Bhatkhande <[email protected]>
wrote:
> Hi,
>
> Should every model have an associated table in database? I have a model
> as a subclass of another model class.
not necessarily. For example when using single table inheritance then
a model and its subclasses will share a table, and you can of course
have non-activerecord model classes that don;t use the database at
all.
Fred
>I am getting 'MySQL gone away'
> error while creating a new object of this subclass.
>
> Any clues?
>
> -
> Amita.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---