Add boilerplate for controllers and routes
Signed-off-by: Tobias Eidelpes <tobias@eidelpes.info>
This commit is contained in:
parent
0b04e7c8fc
commit
c62dd16d8d
2
app/controllers/courses_controller.rb
Normal file
2
app/controllers/courses_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class CoursesController < ApplicationController
|
||||
end
|
||||
2
app/controllers/people_controller.rb
Normal file
2
app/controllers/people_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class PeopleController < ApplicationController
|
||||
end
|
||||
2
app/controllers/projects_controller.rb
Normal file
2
app/controllers/projects_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class ProjectsController < ApplicationController
|
||||
end
|
||||
2
app/controllers/theses_controller.rb
Normal file
2
app/controllers/theses_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class ThesesController < ApplicationController
|
||||
end
|
||||
@ -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
|
||||
|
||||
7
test/controllers/courses_controller_test.rb
Normal file
7
test/controllers/courses_controller_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class CoursesControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/people_controller_test.rb
Normal file
7
test/controllers/people_controller_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PeopleControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/projects_controller_test.rb
Normal file
7
test/controllers/projects_controller_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ProjectsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/theses_controller_test.rb
Normal file
7
test/controllers/theses_controller_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ThesesControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user