質問編集履歴
1
view全体の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,49 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
view
|
33
|
+
view index
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
|
37
|
+
<% provide(:title, 'All users') %>
|
38
|
+
|
39
|
+
<h1>All microposts</h1>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<h2>検索</h2>
|
44
|
+
|
45
|
+
<%= form_tag microposts_path, :method => 'get' do %>
|
46
|
+
|
47
|
+
<p>
|
48
|
+
|
49
|
+
<%= text_field_tag :search, params[:search] %>
|
50
|
+
|
51
|
+
<%= submit_tag "Search", :name => nil %>
|
52
|
+
|
53
|
+
</p>
|
54
|
+
|
55
|
+
<% end %>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<%= paginate @microposts %>
|
62
|
+
|
63
|
+
<ul class="microposts">
|
64
|
+
|
65
|
+
<%= render @microposts %>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
view render
|
34
76
|
|
35
77
|
```ruby
|
36
78
|
|