I’m breaking my head atm about table relations / associations in
The idea is this: Collections has many mods, mods have many folders,
folders have many items.
A collection can have many different versions, the mods associated
with a collection, should ‘have the same version’.
Changelogs are linked to Version, but should differ per Mod.
If I work with ActiveScaffold, things become quite a mess, and I can
for instance create a Changelog entry, for a mod that is not part of
the chosen Collection, and so on.
This is basically what I have atm:
class Collection < ActiveRecord::Base
class Version < ActiveRecord::Base
class Mod < ActiveRecord::Base
class Changelog < ActiveRecord::Base
class Folder < ActiveRecord::Base
belongs to :mod
class Item < ActiveRecord::Base
belongs to :folder
Anybody any ideas? Cheers