diff --git a/app/controllers/attendance_tracker_controller.rb b/app/controllers/attendance_tracker_controller.rb new file mode 100644 index 0000000..10cd500 --- /dev/null +++ b/app/controllers/attendance_tracker_controller.rb @@ -0,0 +1,4 @@ +class AttendanceTrackerController < ApplicationController + def index + end +end diff --git a/app/helpers/attendance_tracker_helper.rb b/app/helpers/attendance_tracker_helper.rb new file mode 100644 index 0000000..c22ef26 --- /dev/null +++ b/app/helpers/attendance_tracker_helper.rb @@ -0,0 +1,2 @@ +module AttendanceTrackerHelper +end diff --git a/app/views/attendance_tracker/index.html.erb b/app/views/attendance_tracker/index.html.erb new file mode 100644 index 0000000..9258175 --- /dev/null +++ b/app/views/attendance_tracker/index.html.erb @@ -0,0 +1,2 @@ +
Find me in app/views/attendance_tracker/index.html.erb
diff --git a/config/routes.rb b/config/routes.rb index 262ffd5..4ebb54f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,3 @@ Rails.application.routes.draw do - # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html - - # Defines the root path route ("/") - # root "articles#index" + root controller: :attendance_tracker, action: :index end diff --git a/test/controllers/attendance_tracker_controller_test.rb b/test/controllers/attendance_tracker_controller_test.rb new file mode 100644 index 0000000..fcfd832 --- /dev/null +++ b/test/controllers/attendance_tracker_controller_test.rb @@ -0,0 +1,8 @@ +require "test_helper" + +class AttendanceTrackerControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get attendance_tracker_index_url + assert_response :success + end +end