質問編集履歴

1

誤字

2016/12/30 05:33

投稿

dbkzajha
dbkzajha

スコア7

test CHANGED
File without changes
test CHANGED
@@ -76,23 +76,23 @@
76
76
 
77
77
  ```ruby
78
78
 
79
- <% @notes.each do |note| %>
79
+ <% @posts.each do |note| %>
80
80
 
81
- <div class="noteBox">
81
+ <div class="postsBox">
82
82
 
83
83
  <p class="title">タイトル:</p>
84
84
 
85
- <p><%=h note.title %></p>
85
+ <p><%=h post.title %></p>
86
86
 
87
87
  <p class="title">コンテンツ:</p>
88
88
 
89
- <p><%=h note.content %></p>
89
+ <p><%=h post.content %></p>
90
90
 
91
91
  <p class="title">カテゴリ:</p>
92
92
 
93
93
  #下記、<Category:0x007f989c86ab78>と表示される
94
94
 
95
- <p><%=h note.category %></p>
95
+ <p><%=h post.category %></p>
96
96
 
97
97
  </div>
98
98