summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gay <eapoems@riseup.net>2023-10-30 00:35:19 -0400
committerDavid Gay <eapoems@riseup.net>2023-10-30 00:35:19 -0400
commitf47ca741d81a8de56fdd1cee1114b9c676d8b245 (patch)
treec926b8ae917ec9cf5cf907fdc1ffb447134fc6b2
parent1fa540c11e46be221a4662bd3a688ec61056e701 (diff)
Login link
-rw-r--r--app/controllers/home_controller.rb3
-rw-r--r--app/views/home/index.html.erb1
-rw-r--r--test/controllers/home_controller_test.rb1
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