Displaying 1 result from an estimated 1 matches for "grade_abbr".
2009 Nov 18
2
Composing Data from THREE models with Aggregation
...gregation (page
324).
I''m trying to map three columns to a single Ruby object. However,
unlike the example in the Agile Web Development book, the three
columns I want to map into one object come from THREE DIFFERENT
models.
I want to map the following three columns into one object:
grade.grade_abbr, strand.strand_abbr, standard.number (ex. 5 NS 2.3).
Also, I only need to read the new object--not edit the original
columns.
Here are the models and their relationships:
class Standard
belongs_to :strand
belongs_to :grade
class Strand
has_many :standards
class Grade
has_many :standa...