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 GoggleCup id to be processed
#
Radiography for a specified team id: "Goggle cup" tab rendering
Collects and represents the Goggle cup ranking

the GoggleCup id to be processed
Radiography for a specified team id : " Goggle cup " tab rendering Collects and represents the Goggle cup ranking the GoggleCup id to be processed
def printout_goggle_cup
    goggle_cup = GoggleCup.find_by_id( params[:id] )
    goggle_cup_name = goggle_cup ? goggle_cup.get_full_name : I18n.t('goggle_cup.default_name')
    @goggle_cup_rank = goggle_cup ? goggle_cup.calculate_goggle_cup_rank : []
    base_filename = I18n.t('goggle_cup.default_name').underscore
    filename = create_unique_filename( base_filename ) + '.pdf'
    options = {
      report_title:         goggle_cup_name,
      meta_info_subject:    'GoggleCup rankings printout',
      meta_info_keywords:   "Goggles, #{ base_filename }'",
      view_context:         view_context,
      ranking:              @goggle_cup_rank
    }
    send_data(                                      
        GoggleCupRankingLayout.render( options ),
        type: 'application/pdf',
        filename: filename
    )
  end
def printout_goggle_cup goggle_cup = GoggleCup . find_by_id ( params [ :id ] ) goggle_cup_name = goggle_cup ? goggle_cup . get_full_name : I18n . t ( 'goggle_cup.default_name' ) @goggle_cup_rank = goggle_cup ? goggle_cup . calculate_goggle_cup_rank : [ ] base_filename = I18n . t ( 'goggle_cup.default_name' ) . underscore filename = create_unique_filename ( base_filename ) + '.pdf' options = { report_title : goggle_cup_name , meta_info_subject : 'GoggleCup rankings printout' , meta_info_keywords : "Goggles, #{ base_filename }'" , view_context : view_context , ranking : @goggle_cup_rank } send_data ( GoggleCupRankingLayout . render ( options ) , type : 'application/pdf' , filename : filename ) 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 current goggle cup, if any # Prepare goggle cup rankings # == OPTIONS setup + RENDERING phase == # == Render layout & send data: