app/controllers/teams_controller.rb
# Radiography for a specified team id: "Goggle cup" tab rendering
# Collects and represents the Goggle cup ranking
#
# == Params:
# id: the team id to be processed
#
# TODO Verify if is better using the same view for current and closed
Radiography for a specified team id: "Goggle cup" tab rendering
Collects and represents the Goggle cup ranking

the team id to be processed


Radiography for a specified team id : " Goggle cup " tab rendering Collects and represents the Goggle cup ranking the team id to be processed
def closed_goggle_cup
    unless ( params[:id] ) && GoggleCup.exists?( params[:id].to_i )
      flash[:error] = I18n.t(:invalid_action_request)
      redirect_back( fallback_location: root_path ) and return
    end
    @closed_goggle_cup = GoggleCup.find( params[:id].to_i )
    @team = @closed_goggle_cup.team.decorate if @closed_goggle_cup
    @tab_title = @closed_goggle_cup.get_full_name
    @closed_goggle_cup_rank = @closed_goggle_cup ? @closed_goggle_cup.calculate_goggle_cup_rank : []
  end
def closed_goggle_cup unless ( params [ :id ] ) && GoggleCup . exists? ( params [ :id ] . to_i ) flash [ :error ] = I18n . t ( :invalid_action_request ) redirect_back ( fallback_location : root_path ) and return end @closed_goggle_cup = GoggleCup . find ( params [ :id ] . to_i ) @team = @closed_goggle_cup . team . decorate if @closed_goggle_cup @tab_title = @closed_goggle_cup . get_full_name @closed_goggle_cup_rank = @closed_goggle_cup ? @closed_goggle_cup . calculate_goggle_cup_rank : [ ] end
Radiography for a specified team id: "Goggle cup" tab rendering
Collects and represents the Goggle cup ranking
Radiography for a specified team id : " Goggle cup " tab rendering Collects and represents the Goggle cup ranking
# Gets closed goggle cup # Gets goggle cup ranks