Add controller

This commit is contained in:
Joshua Coles 2023-09-29 17:50:55 +01:00
parent 0d86f26613
commit f49dd9a882
5 changed files with 17 additions and 4 deletions

View File

@ -0,0 +1,4 @@
class AttendanceTrackerController < ApplicationController
def index
end
end

View File

@ -0,0 +1,2 @@
module AttendanceTrackerHelper
end

View File

@ -0,0 +1,2 @@
<h1>AttendanceTracker#index</h1>
<p>Find me in app/views/attendance_tracker/index.html.erb</p>

View File

@ -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

View File

@ -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