You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
764 B
31 lines
764 B
class StartController < ApplicationController |
|
def index |
|
if current_user |
|
redirect_to(lettings_logs_path) |
|
end |
|
end |
|
|
|
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", |
|
type: "application/pdf", |
|
) |
|
end |
|
|
|
def download_22_23_sales_form |
|
send_file( |
|
Rails.root.join("public/files/2022_23_sales_paper_form.pdf"), |
|
filename: "2022-23 Sales paper form.pdf", |
|
type: "application/pdf", |
|
) |
|
end |
|
|
|
def download_23_24_lettings_form |
|
send_file( |
|
Rails.root.join("public/files/2023_24_lettings_paper_form.pdf"), |
|
filename: "2023-24 Lettings paper form.pdf", |
|
type: "application/pdf", |
|
) |
|
end |
|
end
|
|
|