質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,3 +35,69 @@
|
|
35
35
|
root 'home#index'
|
36
36
|
|
37
37
|
```
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
```view
|
42
|
+
|
43
|
+
<div class="contents row">
|
44
|
+
|
45
|
+
<h2>Log in</h2>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
50
|
+
|
51
|
+
<div class="field">
|
52
|
+
|
53
|
+
<%= f.label :email %><br />
|
54
|
+
|
55
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<div class="field">
|
62
|
+
|
63
|
+
<%= f.label :password %><br />
|
64
|
+
|
65
|
+
<%= f.password_field :password, autocomplete: "off" %>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<% if devise_mapping.rememberable? -%>
|
72
|
+
|
73
|
+
<div class="field">
|
74
|
+
|
75
|
+
<%= f.label :remember_me %><br/>
|
76
|
+
|
77
|
+
<%= f.check_box :remember_me %>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<% end -%>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<div class="actions">
|
86
|
+
|
87
|
+
<%= f.submit "Log in" %>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<% end %>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<%= render "guiders/shared/links" %>
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
```
|
1
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
root以外でページを指定したいのですが、できない状態になっています。
|
test
CHANGED
File without changes
|