From d6dbf8acf7f6bf867d74e13ac9548c3f7af77923 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sat, 7 Nov 2020 14:55:07 +0100 Subject: [PATCH] Plant a root --- app/assets/stylesheets/welcome.scss | 3 +++ app/controllers/welcome_controller.rb | 4 ++++ app/helpers/welcome_helper.rb | 2 ++ app/views/welcome/index.html.erb | 7 +++++++ config/routes.rb | 1 + 5 files changed, 17 insertions(+) create mode 100644 app/assets/stylesheets/welcome.scss create mode 100644 app/controllers/welcome_controller.rb create mode 100644 app/helpers/welcome_helper.rb create mode 100644 app/views/welcome/index.html.erb diff --git a/app/assets/stylesheets/welcome.scss b/app/assets/stylesheets/welcome.scss new file mode 100644 index 0000000..3a356dd --- /dev/null +++ b/app/assets/stylesheets/welcome.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Welcome controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: https://sass-lang.com/ diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb new file mode 100644 index 0000000..f9b859b --- /dev/null +++ b/app/controllers/welcome_controller.rb @@ -0,0 +1,4 @@ +class WelcomeController < ApplicationController + def index + end +end diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb new file mode 100644 index 0000000..eeead45 --- /dev/null +++ b/app/helpers/welcome_helper.rb @@ -0,0 +1,2 @@ +module WelcomeHelper +end diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb new file mode 100644 index 0000000..19548d0 --- /dev/null +++ b/app/views/welcome/index.html.erb @@ -0,0 +1,7 @@ +

Kosmos Accounts

+

+ <%=link_to "Sign up for a new account" %> +

+

+ <%=link_to "Manage your existing account" %> +

diff --git a/config/routes.rb b/config/routes.rb index c06383a..a5d2ba9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,4 @@ Rails.application.routes.draw do + root to: 'welcome#index' # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html end