I have a ruby on rails aplication with a model called Serie. A Serie has multiple Seasons and a season has multiple Chapters.
This is the view controller for Serie.
@series = Serie.all
class Season < ActiveRecord has_many :chapters end class Serie < ActiveRecord has_many :seasons has_many :chapters, through: :seasons end
You can now do...