Forum: Ruby on Rails dynamic models

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Cd804cfeeea508f6bf2f5487c9ef4aed?d=identicon&s=25 linoj (Guest)
on 2007-04-10 20:14
(Received via mailing list)
Anyone know of a plugin that lets you create dynamic models? eg an app
with multiple projects and each project manager can add their own
fields to the project profile
6d57db44c5a4e0721cc7f78cf0ce308a?d=identicon&s=25 Stephen Bartholomew (steveb)
on 2007-04-10 20:35
(Received via mailing list)
Having made a hideous extension for ActiveRecord called
DynamicActiveRecord for project a while back, I can say with
confidence that you are better off creating a system with seperate
models: Project, Field, Option etc.

This creates a far more manageable application and will help you to
avoid any 12 hour straight core application re-writes when the
client's system collapses under the weight of all that magic...

Having said that, perhaps some more intelligent developers have
achieved this in a nice way.  However, I would still argue that simple
and neat is the best way to go.

Cd804cfeeea508f6bf2f5487c9ef4aed?d=identicon&s=25 linoj (Guest)
on 2007-04-11 18:16
(Received via mailing list)
I can see how a "DynamicActiveRecord" extension could get hairy and
overcomplicated. I'd be happy with just some kind of plugin to manage
a separate dynamic model like you indicated that lets me extend a AR
model with a handful of extra fields.
This topic is locked and can not be replied to.