Add boilerplate for controllers and routes

Signed-off-by: Tobias Eidelpes <tobias@eidelpes.info>
This commit is contained in:
Tobias Eidelpes 2020-04-04 16:33:36 +02:00
parent 0b04e7c8fc
commit c62dd16d8d
9 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,2 @@
class CoursesController < ApplicationController
end

View File

@ -0,0 +1,2 @@
class PeopleController < ApplicationController
end

View File

@ -0,0 +1,2 @@
class ProjectsController < ApplicationController
end

View File

@ -0,0 +1,2 @@
class ThesesController < ApplicationController
end

View File

@ -1,3 +1,9 @@
Rails.application.routes.draw do
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
# Listing resources
resources :courses
resources :people
resources :projects
resources :theses
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class CoursesControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class PeopleControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class ProjectsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class ThesesControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end