Add boilerplate for controllers and routes
Signed-off-by: Tobias Eidelpes <tobias@eidelpes.info>
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
class CoursesController < ApplicationController
|
||||||
|
end
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
class PeopleController < ApplicationController
|
||||||
|
end
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
class ProjectsController < ApplicationController
|
||||||
|
end
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
class ThesesController < ApplicationController
|
||||||
|
end
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
|
# 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
|
end
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class CoursesControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
# test "the truth" do
|
||||||
|
# assert true
|
||||||
|
# end
|
||||||
|
end
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class PeopleControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
# test "the truth" do
|
||||||
|
# assert true
|
||||||
|
# end
|
||||||
|
end
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class ProjectsControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
# test "the truth" do
|
||||||
|
# assert true
|
||||||
|
# end
|
||||||
|
end
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class ThesesControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
# test "the truth" do
|
||||||
|
# assert true
|
||||||
|
# end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user