samedi 24 octobre 2015

Ruby on rails display objects in a box table with columns and rows populated dynamically

I have a model class Student which belongs_to two other models (standard and house)

Now the Student object can be uniquely identified by the category_id from the the other models it belongs to.

I wanted to show students in the view.With categories from Standard model to be the x axis(rows) and the categories from the house model to be the Y axis.(columns). Kind of a matrix representation.

Also the standards and houses changes from school to school. So they need to be populated from the db.

Is there some gem I can use to simplify the process.

I am a backend developer and have limited knowledge of Jquery and JS.

Aucun commentaire:

Enregistrer un commentaire