質問編集履歴
2
_user.html.erbの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -166,7 +166,23 @@
|
|
166
166
|
|
167
167
|
|
168
168
|
|
169
|
+
### _user.html.erb
|
169
170
|
|
171
|
+
|
172
|
+
|
173
|
+
```
|
174
|
+
|
175
|
+
<li>
|
176
|
+
|
177
|
+
<%= gravatar_for user, size: 50 %>
|
178
|
+
|
179
|
+
<%= link_to user.name, user %>
|
180
|
+
|
181
|
+
</li>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
```
|
170
186
|
|
171
187
|
|
172
188
|
|
1
index.html.erbのコードを追加。
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,6 +126,44 @@
|
|
126
126
|
|
127
127
|
|
128
128
|
|
129
|
+
### index.html.erb
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
```
|
134
|
+
|
135
|
+
<% provide(:title, 'All users') %>
|
136
|
+
|
137
|
+
<h1>All users</h1>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<%= will_paginate %>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<ul class="users">
|
148
|
+
|
149
|
+
<% @users.each do |user| %>
|
150
|
+
|
151
|
+
<%= render @users %>
|
152
|
+
|
153
|
+
<% end %>
|
154
|
+
|
155
|
+
</ul>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<%= will_paginate %>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
```
|
166
|
+
|
129
167
|
|
130
168
|
|
131
169
|
|