From f47ca741d81a8de56fdd1cee1114b9c676d8b245 Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 30 Oct 2023 00:35:19 -0400 Subject: Login link --- app/controllers/home_controller.rb | 3 +-- app/views/home/index.html.erb | 1 + test/controllers/home_controller_test.rb | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 95f2992..6d3fe90 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,4 +1,3 @@ class HomeController < ApplicationController - def index - end + def index; end end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index a791ff1..d90d13f 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,3 +1,4 @@

Welcome to the Cable Club!

+ <%= link_to "Login", new_user_session_path %>
diff --git a/test/controllers/home_controller_test.rb b/test/controllers/home_controller_test.rb index f6f3785..1cf9db6 100644 --- a/test/controllers/home_controller_test.rb +++ b/test/controllers/home_controller_test.rb @@ -3,6 +3,7 @@ require "test_helper" class HomeControllerTest < ActionDispatch::IntegrationTest test "should get index" do get home_index_url + assert_response :success end end -- cgit v1.2.3