質問編集履歴
1
_new.html.erbのコードを載せました
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,6 +88,86 @@
|
|
88
88
|
|
89
89
|
|
90
90
|
|
91
|
+
<_new.html.erb>
|
92
|
+
|
93
|
+
```_new.html.erb
|
94
|
+
|
95
|
+
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
|
96
|
+
|
97
|
+
<div class="modal-dialog modal-dialog-centered" role="document">
|
98
|
+
|
99
|
+
<div class="modal-content">
|
100
|
+
|
101
|
+
<div class="modal-header">
|
102
|
+
|
103
|
+
<h5 class="modal-title" id="exampleModalCenterTitle">登録する</h5>
|
104
|
+
|
105
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
106
|
+
|
107
|
+
<span aria-hidden="true">×</span>
|
108
|
+
|
109
|
+
</button>
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
<div class="modal-body">
|
114
|
+
|
115
|
+
<form>
|
116
|
+
|
117
|
+
<%= form_with(model: @user, local: true) do |f| %>
|
118
|
+
|
119
|
+
<div class="form-group">
|
120
|
+
|
121
|
+
<%= f.label :name, "アカウント名" %>
|
122
|
+
|
123
|
+
<%= f.text_field :name, class: "form-control" %>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<%= f.label :email, "メールアドレス" %>
|
128
|
+
|
129
|
+
<%= f.email_field :email, class: "form-control" %>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<%= f.label :password, "パスワード" %>
|
134
|
+
|
135
|
+
<%= f.password_field :password, class: "form-control" %>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<%= f.label :password_confirmation, "パスワード(確認用)" %>
|
140
|
+
|
141
|
+
<%= f.password_field :password_confirmation, class: "form-control" %>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<div class="d-flex justify-content-center p-4">
|
146
|
+
|
147
|
+
<%= f.submit "新規登録", class: "btn btn-primary" %>
|
148
|
+
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<% end %>
|
152
|
+
|
153
|
+
</div>
|
154
|
+
|
155
|
+
<%= link_to "利用規約", "#", class: "#" %>
|
156
|
+
|
157
|
+
</form>
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
</div>
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
```
|
168
|
+
|
169
|
+
|
170
|
+
|
91
171
|
|
92
172
|
|
93
173
|
初歩的な質問で大変申し訳ないのですが、
|