質問編集履歴
6
コードの追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,13 +78,19 @@
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
-
*```ruby
|
82
|
-
|
83
|
-
<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
|
84
|
-
|
85
|
-
```*
|
86
81
|
|
87
82
|
|
83
|
+
```ruby
|
84
|
+
|
85
|
+
<div class="nav__right">
|
86
|
+
|
87
|
+
<%= link_to "ログイン", new_user_session_path, class: :nav__btn %>
|
88
|
+
|
89
|
+
*<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>*
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
```
|
88
94
|
|
89
95
|
```ruby
|
90
96
|
|
5
codeの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,17 +58,21 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
+
```ruby
|
62
|
+
|
61
63
|
<div class="form__wrapper">
|
62
64
|
|
63
65
|
<h2 class="page-heading">ユーザー新規登録</h2>
|
64
66
|
|
65
67
|
<%= devise_error_messages! %>
|
66
68
|
|
67
|
-
*```ruby
|
68
69
|
|
69
|
-
<%= form_with model: @user, url: user_registration_path, local: true do |f| %>
|
70
70
|
|
71
|
+
*<%= form_with model: @user, url: user_registration_path, local: true do |f| %>*
|
72
|
+
|
73
|
+
|
74
|
+
|
71
|
-
```
|
75
|
+
```
|
72
76
|
|
73
77
|
もしくは
|
74
78
|
|
@@ -81,6 +85,8 @@
|
|
81
85
|
```*
|
82
86
|
|
83
87
|
|
88
|
+
|
89
|
+
```ruby
|
84
90
|
|
85
91
|
routesの一覧
|
86
92
|
|
@@ -101,6 +107,8 @@
|
|
101
107
|
root GET / prototypes#index
|
102
108
|
|
103
109
|
|
110
|
+
|
111
|
+
```
|
104
112
|
|
105
113
|
ここに言語名を入力
|
106
114
|
|
4
codeをやりました
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,11 @@
|
|
28
28
|
|
29
29
|
devise_for :users
|
30
30
|
|
31
|
+
*```ruby
|
32
|
+
|
31
|
-
|
33
|
+
root to: "prototypes#index
|
34
|
+
|
35
|
+
```"*
|
32
36
|
|
33
37
|
end
|
34
38
|
|
@@ -38,11 +42,15 @@
|
|
38
42
|
|
39
43
|
|
40
44
|
|
45
|
+
```ruby
|
46
|
+
|
41
|
-
|
47
|
+
def index
|
42
48
|
|
43
49
|
|
44
50
|
|
45
51
|
end
|
52
|
+
|
53
|
+
```
|
46
54
|
|
47
55
|
|
48
56
|
|
@@ -56,13 +64,21 @@
|
|
56
64
|
|
57
65
|
<%= devise_error_messages! %>
|
58
66
|
|
67
|
+
*```ruby
|
68
|
+
|
59
|
-
|
69
|
+
<%= form_with model: @user, url: user_registration_path, local: true do |f| %>
|
70
|
+
|
71
|
+
```*
|
60
72
|
|
61
73
|
もしくは
|
62
74
|
|
63
75
|
|
64
76
|
|
77
|
+
*```ruby
|
78
|
+
|
65
|
-
|
79
|
+
<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
|
80
|
+
|
81
|
+
```*
|
66
82
|
|
67
83
|
|
68
84
|
|
3
追加コードを入れました
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
### 該当のソースコード
|
24
24
|
|
25
|
-
routes.rb
|
25
|
+
*routes.rb*
|
26
26
|
|
27
27
|
Rails.application.routes.draw do
|
28
28
|
|
@@ -56,13 +56,35 @@
|
|
56
56
|
|
57
57
|
<%= devise_error_messages! %>
|
58
58
|
|
59
|
-
|
60
|
-
|
61
59
|
*<%= form_with model: @user, url: user_registration_path, local: true do |f| %>*
|
62
60
|
|
63
61
|
もしくは
|
64
62
|
|
63
|
+
|
64
|
+
|
65
65
|
*<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>*
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
routesの一覧
|
70
|
+
|
71
|
+
cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
|
72
|
+
|
73
|
+
new_user_registration GET /users/sign_up(.:format) devise/registrations#new
|
74
|
+
|
75
|
+
edit_user_registration GET /users/edit(.:format) devise/registrations#edit
|
76
|
+
|
77
|
+
user_registration PATCH /users(.:format) devise/registrations#update
|
78
|
+
|
79
|
+
PUT /users(.:format) devise/registrations#update
|
80
|
+
|
81
|
+
DELETE /users(.:format) devise/registrations#destroy
|
82
|
+
|
83
|
+
POST /users(.:format) devise/registrations#create
|
84
|
+
|
85
|
+
root GET / prototypes#index
|
86
|
+
|
87
|
+
|
66
88
|
|
67
89
|
ここに言語名を入力
|
68
90
|
|
2
マークダウンしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,13 +28,13 @@
|
|
28
28
|
|
29
29
|
devise_for :users
|
30
30
|
|
31
|
-
root to: "prototypes#index"
|
31
|
+
*root to: "prototypes#index"*
|
32
32
|
|
33
33
|
end
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
prototypes_controllerclass
|
37
|
+
*prototypes_controllerclass*
|
38
38
|
|
39
39
|
|
40
40
|
|
@@ -58,11 +58,11 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
-
<%= form_with model: @user, url: user_registration_path, local: true do |f| %>
|
61
|
+
*<%= form_with model: @user, url: user_registration_path, local: true do |f| %>*
|
62
62
|
|
63
63
|
もしくは
|
64
64
|
|
65
|
-
<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
|
65
|
+
*<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>*
|
66
66
|
|
67
67
|
ここに言語名を入力
|
68
68
|
|
1
追加コードを入れました
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,6 +21,42 @@
|
|
21
21
|
No route matches [GET] "/users"
|
22
22
|
|
23
23
|
### 該当のソースコード
|
24
|
+
|
25
|
+
routes.rb
|
26
|
+
|
27
|
+
Rails.application.routes.draw do
|
28
|
+
|
29
|
+
devise_for :users
|
30
|
+
|
31
|
+
root to: "prototypes#index"
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
prototypes_controllerclass
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
def index
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<div class="form__wrapper">
|
54
|
+
|
55
|
+
<h2 class="page-heading">ユーザー新規登録</h2>
|
56
|
+
|
57
|
+
<%= devise_error_messages! %>
|
58
|
+
|
59
|
+
|
24
60
|
|
25
61
|
<%= form_with model: @user, url: user_registration_path, local: true do |f| %>
|
26
62
|
|