generated all controller classes

This commit is contained in:
Marco Zeisler 2020-04-06 20:40:13 +02:00
parent c7dbd07496
commit caa7eadf21
54 changed files with 416 additions and 1 deletions

View File

@ -0,0 +1,3 @@
// Place all the styles related to the Courses controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/

View File

@ -1,3 +1,3 @@
// Place all the styles related to the login controller here.
// Place all the styles related to the Login controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/

View File

@ -0,0 +1,3 @@
// Place all the styles related to the People controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/

View File

@ -0,0 +1,3 @@
// Place all the styles related to the Projects controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/

View File

@ -0,0 +1,3 @@
// Place all the styles related to the Theses controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/

View File

@ -0,0 +1,22 @@
class CoursesController < ApplicationController
def index
end
def show
end
def new
end
def edit
end
def create
end
def update
end
def destroy
end
end

View File

@ -1,4 +1,22 @@
class LoginController < ApplicationController
def index
end
def show
end
def new
end
def edit
end
def create
end
def update
end
def destroy
end
end

View File

@ -0,0 +1,22 @@
class PeopleController < ApplicationController
def index
end
def show
end
def new
end
def edit
end
def create
end
def update
end
def destroy
end
end

View File

@ -0,0 +1,22 @@
class ProjectsController < ApplicationController
def index
end
def show
end
def new
end
def edit
end
def create
end
def update
end
def destroy
end
end

View File

@ -0,0 +1,22 @@
class ThesesController < ApplicationController
def index
end
def show
end
def new
end
def edit
end
def create
end
def update
end
def destroy
end
end

View File

@ -0,0 +1,2 @@
module CoursesHelper
end

View File

@ -0,0 +1,2 @@
module PeopleHelper
end

View File

@ -0,0 +1,2 @@
module ProjectsHelper
end

View File

@ -0,0 +1,2 @@
module ThesesHelper
end

View File

@ -0,0 +1,2 @@
<h1>Courses#create</h1>
<p>Find me in app/views/courses/create.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Courses#destroy</h1>
<p>Find me in app/views/courses/destroy.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Courses#edit</h1>
<p>Find me in app/views/courses/edit.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Courses#index</h1>
<p>Find me in app/views/courses/index.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Courses#new</h1>
<p>Find me in app/views/courses/new.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Courses#show</h1>
<p>Find me in app/views/courses/show.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Courses#update</h1>
<p>Find me in app/views/courses/update.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Login#create</h1>
<p>Find me in app/views/login/create.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Login#destroy</h1>
<p>Find me in app/views/login/destroy.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Login#edit</h1>
<p>Find me in app/views/login/edit.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Login#new</h1>
<p>Find me in app/views/login/new.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Login#show</h1>
<p>Find me in app/views/login/show.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Login#update</h1>
<p>Find me in app/views/login/update.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>People#create</h1>
<p>Find me in app/views/people/create.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>People#destroy</h1>
<p>Find me in app/views/people/destroy.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>People#edit</h1>
<p>Find me in app/views/people/edit.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>People#index</h1>
<p>Find me in app/views/people/index.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>People#new</h1>
<p>Find me in app/views/people/new.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>People#show</h1>
<p>Find me in app/views/people/show.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>People#update</h1>
<p>Find me in app/views/people/update.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Projects#create</h1>
<p>Find me in app/views/projects/create.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Projects#destroy</h1>
<p>Find me in app/views/projects/destroy.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Projects#edit</h1>
<p>Find me in app/views/projects/edit.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Projects#index</h1>
<p>Find me in app/views/projects/index.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Projects#new</h1>
<p>Find me in app/views/projects/new.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Projects#show</h1>
<p>Find me in app/views/projects/show.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Projects#update</h1>
<p>Find me in app/views/projects/update.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Theses#create</h1>
<p>Find me in app/views/theses/create.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Theses#destroy</h1>
<p>Find me in app/views/theses/destroy.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Theses#edit</h1>
<p>Find me in app/views/theses/edit.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Theses#index</h1>
<p>Find me in app/views/theses/index.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Theses#new</h1>
<p>Find me in app/views/theses/new.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Theses#show</h1>
<p>Find me in app/views/theses/show.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Theses#update</h1>
<p>Find me in app/views/theses/update.html.erb</p>

View File

@ -1,4 +1,39 @@
Rails.application.routes.draw do
get 'theses/index'
get 'theses/show'
get 'theses/new'
get 'theses/edit'
get 'theses/create'
get 'theses/update'
get 'theses/destroy'
get 'projects/index'
get 'projects/show'
get 'projects/new'
get 'projects/edit'
get 'projects/create'
get 'projects/update'
get 'projects/destroy'
get 'people/index'
get 'people/show'
get 'people/new'
get 'people/edit'
get 'people/create'
get 'people/update'
get 'people/destroy'
get 'login/index'
get 'login/show'
get 'login/new'
get 'login/edit'
get 'login/create'
get 'login/update'
get 'login/destroy'
get 'courses/index'
get 'courses/show'
get 'courses/new'
get 'courses/edit'
get 'courses/create'
get 'courses/update'
get 'courses/destroy'
get 'login/index'
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end

View File

@ -0,0 +1,39 @@
require 'test_helper'
class CoursesControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get courses_index_url
assert_response :success
end
test "should get show" do
get courses_show_url
assert_response :success
end
test "should get new" do
get courses_new_url
assert_response :success
end
test "should get edit" do
get courses_edit_url
assert_response :success
end
test "should get create" do
get courses_create_url
assert_response :success
end
test "should get update" do
get courses_update_url
assert_response :success
end
test "should get destroy" do
get courses_destroy_url
assert_response :success
end
end

View File

@ -6,4 +6,34 @@ class LoginControllerTest < ActionDispatch::IntegrationTest
assert_response :success
end
test "should get show" do
get login_show_url
assert_response :success
end
test "should get new" do
get login_new_url
assert_response :success
end
test "should get edit" do
get login_edit_url
assert_response :success
end
test "should get create" do
get login_create_url
assert_response :success
end
test "should get update" do
get login_update_url
assert_response :success
end
test "should get destroy" do
get login_destroy_url
assert_response :success
end
end

View File

@ -0,0 +1,39 @@
require 'test_helper'
class PeopleControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get people_index_url
assert_response :success
end
test "should get show" do
get people_show_url
assert_response :success
end
test "should get new" do
get people_new_url
assert_response :success
end
test "should get edit" do
get people_edit_url
assert_response :success
end
test "should get create" do
get people_create_url
assert_response :success
end
test "should get update" do
get people_update_url
assert_response :success
end
test "should get destroy" do
get people_destroy_url
assert_response :success
end
end

View File

@ -0,0 +1,39 @@
require 'test_helper'
class ProjectsControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get projects_index_url
assert_response :success
end
test "should get show" do
get projects_show_url
assert_response :success
end
test "should get new" do
get projects_new_url
assert_response :success
end
test "should get edit" do
get projects_edit_url
assert_response :success
end
test "should get create" do
get projects_create_url
assert_response :success
end
test "should get update" do
get projects_update_url
assert_response :success
end
test "should get destroy" do
get projects_destroy_url
assert_response :success
end
end

View File

@ -0,0 +1,39 @@
require 'test_helper'
class ThesesControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get theses_index_url
assert_response :success
end
test "should get show" do
get theses_show_url
assert_response :success
end
test "should get new" do
get theses_new_url
assert_response :success
end
test "should get edit" do
get theses_edit_url
assert_response :success
end
test "should get create" do
get theses_create_url
assert_response :success
end
test "should get update" do
get theses_update_url
assert_response :success
end
test "should get destroy" do
get theses_destroy_url
assert_response :success
end
end