app/views/competitions/index.html.haml
%h1 Listing competitions
%table
%tr
%th Name
%th Start date
%th End date
%th Team
- @competitions.each do |competition|
%tr
%td= link_to competition.name, competition
%td= competition.start_date
%td= competition.end_date
%td= competition.team_id