Created
June 5, 2012 18:04
-
-
Save decioferreira/2876608 to your computer and use it in GitHub Desktop.
Rendering Collections
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
<h2>#<%= post_counter + 1 %> <%= post.title %></h2> |
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
Posts | |
#1 First Post Title | |
#2 Second Post Title | |
#3 Third Post Title |
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
<h1>Posts</h1> | |
<%= render @posts %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment