Last active
March 18, 2020 18:05
-
-
Save starwels/970aa768850702b9adf993381ec8e189 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
posts: <%= @posts.size %> <br> | |
<% @posts.each do |post| %> | |
<%= post['title'] %> | |
<hr> | |
<%= post['body'] %> | |
<%= post['status'] %> | |
<hr> | |
comments: <%= post['comments'].size %> <br> | |
<% post['comments'].each do |comment| %> | |
<%= comment['body'] %> | |
<% end %> | |
<hr> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment