質問編集履歴

1

route.rbが間違ってました。

2018/11/21 07:01

投稿

chikaraueta
chikaraueta

スコア16

test CHANGED
File without changes
test CHANGED
@@ -14,19 +14,25 @@
14
14
 
15
15
  ```
16
16
 
17
- class AddColumnToUsers < ActiveRecord::Migration
17
+ Rails.application.routes.draw do
18
18
 
19
- def change
19
+ devise_for :users
20
20
 
21
- add_column :users, :name, :string
21
+ root to: "top#index"
22
22
 
23
- add_column :users, :profile, :text
23
+ resources :users, only: [:show, :edit, :update]
24
24
 
25
+ resources :project, only: [:new, :create, :show] do
26
+
27
+ resources :join, only: [:create]
28
+
25
- add_column :users, :degree_of_reliability, :integer
29
+ resources :degree_of_reliability, only: [:update]
26
30
 
27
31
  end
28
32
 
29
33
  end
34
+
35
+
30
36
 
31
37
  ```
32
38