Hello Guys,
I had a question. I had designed something in Java and was thinking if it
can be replicated in ROR.
I could not think of a way, so asking.
*Application Data Model** - 1 / 2 Tables*
Java Class called *Box* with 4 attributes:
1. Cardinality (minimum number allowed, maximum number allowed, default add
number)
2. Name (Multiple versions of names) based on usage
3. Attributes - This class can hold 0 to infinite attributes without table
change
4. Relations - allows attaching multiple empty_item_type by defining
relations and grouping
*Reference Model - 1 / 2 Tables*
We then used this Box class to define / design complex hierarchical
templates without database change.
Each template is stored in a reference table called templates.
*Code*
Then we write business logic code for each templates
*User usage
*1. Chose template and create new application object
2. Start using it
*How to do it in ROR?*
1. Instead of using automatic ROR based GUI-CODE-DB attribute mapping, write
my own code to do it
2. But then whats the advantage of using ROR
3. Is there any simpler way of making this work?