Add controller
This commit is contained in:
parent
0d86f26613
commit
f49dd9a882
4
app/controllers/attendance_tracker_controller.rb
Normal file
4
app/controllers/attendance_tracker_controller.rb
Normal file
@ -0,0 +1,4 @@
|
||||
class AttendanceTrackerController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
||||
2
app/helpers/attendance_tracker_helper.rb
Normal file
2
app/helpers/attendance_tracker_helper.rb
Normal file
@ -0,0 +1,2 @@
|
||||
module AttendanceTrackerHelper
|
||||
end
|
||||
2
app/views/attendance_tracker/index.html.erb
Normal file
2
app/views/attendance_tracker/index.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>AttendanceTracker#index</h1>
|
||||
<p>Find me in app/views/attendance_tracker/index.html.erb</p>
|
||||
@ -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
|
||||
|
||||
8
test/controllers/attendance_tracker_controller_test.rb
Normal file
8
test/controllers/attendance_tracker_controller_test.rb
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user