Skip to content

Commit 26a7eb2

Browse files
authored
index.ejs line 12 correction
The object in app.js has title, content, and published as properties. When running the server, the content didn't render because in index.ejs, line 12 had <%= entry.body %> it should be <%= entry.content %>
1 parent 2047e07 commit 26a7eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Chapter_03/guestbook/views/index.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<%= entry.title %>
1010
</div>
1111
<div class="panel-body">
12-
<%= entry.body %>
12+
<%= entry.content %>
1313
</div>
1414
</div>
1515
<% }) %>
1616
<% } else { %> No entries! <a href="/new-entry">Add one!</a>
1717
<% } %>
18-
<% include footer %>
18+
<% include footer %>

0 commit comments

Comments
 (0)