app/helpers/costumes_helper.rb
# return true if @costume has no rows w/ 2020 dance season in CostumeAssignments table
return true if @costume has no rows w/ 2020 dance season in CostumeAssignments table
return true if @costume has no rows w / 2020 dance season in CostumeAssignments table
def view_costume_assignments_button(costume)
    if params[:season]
      link_to "View #{current_year} Costume Assignments", season_assignments_path(costume, season: current_year), class: 'button is-primary'
    else
      link_to 'View All Costume Assignments', assigned_costume_path(costume), class: 'button is-primary'
    end
  end
def view_costume_assignments_button ( costume ) if params [ :season ] link_to "View #{current_year} Costume Assignments" , season_assignments_path ( costume , season : current_year ) , class : 'button is-primary' else link_to 'View All Costume Assignments' , assigned_costume_path ( costume ) , class : 'button is-primary' end end
return true if @costume has no rows w/ 2020 dance season in CostumeAssignments table
return true if @costume has no rows w / 2020 dance season in CostumeAssignments table
costume
<not_specific>