We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
class FixturesController < ApplicationController def index @fixtures = Fixture.all end end ##view <h1>Listing fixtures</h1> <% @fixtures.each do |fixture| %> <%= fixture.season.title %></td> <td><%= fixture.event.title %></td> <td><%= fixture.home_team.name %></td> <td><%= fixture.away_team.name %></td> <td><%= fixture.date %></td> class Season < ActiveRecord::Base has_many :fixtures end class Fixture < ActiveRecord::Base belongs_to :season belongs_to :event belongs_to :home_team, :class_name => 'Team' belongs_to :away_team, :class_name => 'Team' end
Join the community of 500,000 technology professionals and ask your questions.