Add controller
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
class AttendanceTrackerController < ApplicationController
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
module AttendanceTrackerHelper
|
||||||
|
end
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<h1>AttendanceTracker#index</h1>
|
||||||
|
<p>Find me in app/views/attendance_tracker/index.html.erb</p>
|
||||||
+1
-4
@@ -1,6 +1,3 @@
|
|||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
root controller: :attendance_tracker, action: :index
|
||||||
|
|
||||||
# Defines the root path route ("/")
|
|
||||||
# root "articles#index"
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user