From 2cfcfaf69dbd8f5a01347660c28960aa3a7e942f Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 12 Mar 2024 17:12:43 -0700 Subject: [PATCH] Rename StaticController to AboutController This is where `/about` pages will go now! --- app/controllers/about_controller.rb | 4 ++++ app/controllers/static_controller.rb | 2 -- app/views/{static => about}/terms.html.haml | 0 config/routes.rb | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 app/controllers/about_controller.rb delete mode 100644 app/controllers/static_controller.rb rename app/views/{static => about}/terms.html.haml (100%) diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb new file mode 100644 index 00000000..9397eab0 --- /dev/null +++ b/app/controllers/about_controller.rb @@ -0,0 +1,4 @@ +class AboutController < ApplicationController + def terms + end +end diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb deleted file mode 100644 index c6df11e2..00000000 --- a/app/controllers/static_controller.rb +++ /dev/null @@ -1,2 +0,0 @@ -class StaticController < ApplicationController -end diff --git a/app/views/static/terms.html.haml b/app/views/about/terms.html.haml similarity index 100% rename from app/views/static/terms.html.haml rename to app/views/about/terms.html.haml diff --git a/config/routes.rb b/config/routes.rb index da7abc7e..af5dda38 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -87,7 +87,7 @@ OpenneoImpressItems::Application.routes.draw do get '/donate' => 'fundraising/campaigns#current', as: :donate # Static pages! - get '/terms', to: "static#terms", as: :terms + get '/terms', to: "about#terms", as: :terms # Other useful lil things! get '/sitemap.xml' => 'sitemap#index', :as => :sitemap, :format => :xml