質問編集履歴
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -136,6 +136,46 @@
|
|
136
136
|
|
137
137
|
```
|
138
138
|
|
139
|
+
2: .index.container-fluide
|
140
|
+
|
141
|
+
3: .index__maxim
|
142
|
+
|
143
|
+
=> 4: =binding.pry
|
144
|
+
|
145
|
+
5: %p= @maxims.text
|
146
|
+
|
147
|
+
6: %p= @maxims.name
|
148
|
+
|
149
|
+
7: .index__warapper.container-fluid
|
150
|
+
|
151
|
+
8: -if @present.present?
|
152
|
+
|
153
|
+
9: -@posts.each do |post|
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
[1] pry(#<#<Class:0x00007fd16e3de978>>)> @maxims
|
158
|
+
|
159
|
+
=> [#<Maxim:0x00007fd16e4f57d0
|
160
|
+
|
161
|
+
id: 1,
|
162
|
+
|
163
|
+
text: "aaaaaa",
|
164
|
+
|
165
|
+
name: "bbbbbbb",
|
166
|
+
|
167
|
+
created_at: Sat, 16 May 2020 00:00:00 UTC +00:00,
|
168
|
+
|
169
|
+
updated_at: Sat, 16 May 2020 00:00:00 UTC +00:00>]
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
bindin.pryでみてもパラムズには値が入っている。
|
174
|
+
|
175
|
+
```
|
176
|
+
|
177
|
+
```
|
178
|
+
|
139
179
|
index.html.haml
|
140
180
|
|
141
181
|
|