Created
December 27, 2014 17:49
-
-
Save rizkylab/c91e4347a039c436f517 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
<h1> Selamat datang di Rizkylab </h1> | |
<% @posts.each do |post| %> | |
<h2> <%= link_to post.judul, post %> </h2> | |
<p> | |
<%= time_ago_in_words post.created_at %> ago | |
</p> | |
<p> | |
<%= truncate post.test %> | |
</p> | |
<% end %> | |
<p> | |
<%= link_to "Create New Post", new_post_path %> | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment