diff options
-rw-r--r-- | app/controllers/home_controller.rb | 3 | ||||
-rw-r--r-- | app/views/home/index.html.erb | 1 | ||||
-rw-r--r-- | 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 @@ <div> <h1 class="font-bold text-2xl">Welcome to the Cable Club!</h1> + <%= link_to "Login", new_user_session_path %> </div> 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 |