Module TeamsHelper
In: app/helpers/teams_helper.rb

Methods

Public Instance methods

Show team contact with email, if we have one

[Source]

   # File app/helpers/teams_helper.rb, line 3
3:   def link_to_contact(team)
4:     if team.contact_email.present?
5:       mail_to team.contact_email, team.contact_name
6:     else
7:       team.contact_name
8:     end
9:   end

[Source]

    # File app/helpers/teams_helper.rb, line 11
11:   def list_all_teams
12:     teams = Team.find(:all)
13:     render :partial => "teams/list", :locals => { :teams => teams }
14:   end

[Validate]