app/controllers/championships_controller.rb
# Prepares the PDF report using the ChampionshipRankingRegionalCSILayout for the
# current CSI Championship.
#
Prepares the PDF report using the ChampionshipRankingRegionalCSILayout for the
current CSI Championship.
Prepares the PDF report using the ChampionshipRankingRegionalCSILayout for the current CSI Championship .
def printout_ranking_regional_csi
    championship_calculator = ChampionshipRankingCalculator.new( @season )
    @championship_dao = championship_calculator.get_season_ranking
    base_filename = "champ_ranking_#{ @season.id }"
    filename = create_unique_filename( base_filename ) + '.pdf'
    options = {
      report_title:         "#{ I18n.t('championships.team_ranking') } #{ @season.get_full_name }",
      meta_info_subject:    'CSI regional championship ranking report',
      meta_info_keywords:   "Goggles, #{base_filename}'",
      championship_dao:     @championship_dao
    }
    send_data(                                      
        ChampionshipRankingRegionalCSILayout.render( options ),
        type: 'application/pdf',
        filename: filename
    )
  end
def printout_ranking_regional_csi championship_calculator = ChampionshipRankingCalculator . new ( @season ) @championship_dao = championship_calculator . get_season_ranking base_filename = "champ_ranking_#{ @season.id }" filename = create_unique_filename ( base_filename ) + '.pdf' options = { report_title : "#{ I18n.t('championships.team_ranking') } #{ @season.get_full_name }" , meta_info_subject : 'CSI regional championship ranking report' , meta_info_keywords : "Goggles, #{base_filename}'" , championship_dao : @championship_dao } send_data ( ChampionshipRankingRegionalCSILayout . render ( options ) , type : 'application/pdf' , filename : filename ) end
Prepares the PDF report using the ChampionshipRankingRegionalCSILayout for the
current CSI Championship.
Prepares the PDF report using the ChampionshipRankingRegionalCSILayout for the current CSI Championship .
# == OPTIONS setup + RENDERING phase == # == Render layout & send data: