質問編集履歴
1
_new.html.erbのコードを載せました
title
CHANGED
File without changes
|
body
CHANGED
@@ -43,7 +43,47 @@
|
|
43
43
|
$('#exampleModalCenter').html("<%= escape_javascript(render 'users/new') %>")
|
44
44
|
```
|
45
45
|
|
46
|
+
<_new.html.erb>
|
47
|
+
```_new.html.erb
|
48
|
+
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
|
49
|
+
<div class="modal-dialog modal-dialog-centered" role="document">
|
50
|
+
<div class="modal-content">
|
51
|
+
<div class="modal-header">
|
52
|
+
<h5 class="modal-title" id="exampleModalCenterTitle">登録する</h5>
|
53
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
54
|
+
<span aria-hidden="true">×</span>
|
55
|
+
</button>
|
56
|
+
</div>
|
57
|
+
<div class="modal-body">
|
58
|
+
<form>
|
59
|
+
<%= form_with(model: @user, local: true) do |f| %>
|
60
|
+
<div class="form-group">
|
61
|
+
<%= f.label :name, "アカウント名" %>
|
62
|
+
<%= f.text_field :name, class: "form-control" %>
|
46
63
|
|
64
|
+
<%= f.label :email, "メールアドレス" %>
|
65
|
+
<%= f.email_field :email, class: "form-control" %>
|
66
|
+
|
67
|
+
<%= f.label :password, "パスワード" %>
|
68
|
+
<%= f.password_field :password, class: "form-control" %>
|
69
|
+
|
70
|
+
<%= f.label :password_confirmation, "パスワード(確認用)" %>
|
71
|
+
<%= f.password_field :password_confirmation, class: "form-control" %>
|
72
|
+
|
73
|
+
<div class="d-flex justify-content-center p-4">
|
74
|
+
<%= f.submit "新規登録", class: "btn btn-primary" %>
|
75
|
+
</div>
|
76
|
+
<% end %>
|
77
|
+
</div>
|
78
|
+
<%= link_to "利用規約", "#", class: "#" %>
|
79
|
+
</form>
|
80
|
+
</div>
|
81
|
+
</div>
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
```
|
85
|
+
|
86
|
+
|
47
87
|
初歩的な質問で大変申し訳ないのですが、
|
48
88
|
ご教授いただけたら幸いです。
|
49
89
|
|