質問編集履歴
1
コードの追記を行いました
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,21 +14,41 @@
|
|
14
14
|
|
15
15
|
```
|
16
16
|
|
17
|
-
|
17
|
+
Routing Error
|
18
|
+
|
19
|
+
No route matches [GET] "/employees"
|
18
20
|
|
19
21
|
```
|
20
22
|
|
21
|
-
Routing Error
|
22
23
|
|
23
|
-
No route matches [GET] "/employees"
|
24
24
|
|
25
25
|
### 該当のソースコード
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
```
|
29
|
+
```ruby on rails
|
30
30
|
|
31
|
-
|
31
|
+
routes.rb
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
Rails.application.routes.draw do
|
36
|
+
|
37
|
+
devise_for :users
|
38
|
+
|
39
|
+
root to: 'employees#index'
|
40
|
+
|
41
|
+
get 'search', to: 'employees#search'
|
42
|
+
|
43
|
+
resources :employees, only: [:new, :create, :edit, :update, :destroy]
|
44
|
+
|
45
|
+
resources :occupations, only: [:index, :new, :create, :edit, :show, :update]
|
46
|
+
|
47
|
+
resources :belongs, only: [:index,:new, :create, :edit, :show, :update]
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
end
|
32
52
|
|
33
53
|
```
|
34
54
|
|
@@ -38,7 +58,7 @@
|
|
38
58
|
|
39
59
|
|
40
60
|
|
41
|
-
|
61
|
+
resources :employees, only: [:new, :create, :edit, :update, :destroy]にsearchを追記してみるも改善しませんでした
|
42
62
|
|
43
63
|
|
44
64
|
|