class TeamsController

Public page of all Teams

Public Instance Methods

index() click to toggle source
# File app/controllers/teams_controller.rb, line 5
def index
  if RacingAssociation.current.show_all_teams_on_public_page?
    @teams = Team.all
  else
    @teams = Team.all( :conditions => { :member => true, :show_on_public_page => true })
  end
  @discipline_names = Discipline.names
  expires_in 1.hour, :public => true
end