From a53f180524a27b1beb55873c09d3cf8d18f7a767 Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 13 Mar 2023 09:10:08 +0000 Subject: [PATCH] Rename download path --- app/controllers/start_controller.rb | 2 +- app/views/layouts/_collection_resources.html.erb | 2 +- config/routes.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb index 387456876..e952e1325 100644 --- a/app/controllers/start_controller.rb +++ b/app/controllers/start_controller.rb @@ -5,7 +5,7 @@ class StartController < ApplicationController end end - def download_pdf + def download_23_24_sales_form send_file( Rails.root.join("public/files/2023_24_sales_paper_form.pdf"), filename: "2023-24 Sales paper form.pdf", diff --git a/app/views/layouts/_collection_resources.html.erb b/app/views/layouts/_collection_resources.html.erb index 3bd7f71de..48df3bf6a 100644 --- a/app/views/layouts/_collection_resources.html.erb +++ b/app/views/layouts/_collection_resources.html.erb @@ -24,7 +24,7 @@ <%= render DocumentListComponent.new(items: [ { name: "Sales log for buyers (2023/24)", - href: start_download_pdf_path, + href: download_23_24_sales_form_path, metadata: "PDF, 421 KB, 8 pages", }, ]) %> diff --git a/config/routes.rb b/config/routes.rb index 8fe1bcf32..f997929d4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,7 +35,7 @@ Rails.application.routes.draw do get "/accessibility-statement", to: "content#accessibility_statement" get "/privacy-notice", to: "content#privacy_notice" get "/data-sharing-agreement", to: "content#data_sharing_agreement" - get "start/download_pdf" + get "/download-23-24-sales-form", to: "start#download_23_24_sales_form" resource :account, only: %i[show edit], controller: "users" do get "edit/password", to: "users#edit_password"