Created
December 27, 2014 18:02
-
-
Save rizkylab/ce9feb35bed82d25f162 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
<p id="notice"><%= notice %></p> | |
<p> | |
<strong>Judul:</strong> | |
<%= @post.judul %> | |
</p> | |
<p> | |
<strong>Isi:</strong> | |
<%= @post.test %> | |
</p> | |
<h2>comment</h2> | |
<% @post.comments.each do |comment| %> | |
<p> <%= comment.text %></p> | |
<p> <% time_ago_in_words comment.created_at %> ago</p> | |
<% end %> | |
<%= form_for([@post, @post.comments.build]) do |f| %> | |
<p> <%= f.text_area :text, :size => '40x20' %> </p> | |
<p> <%= f.submit "Post Comment" %> </p> | |
<% end %> | |
<p> | |
<%= link_to 'Edit', edit_post_path(@post) %> | | |
<%= link_to 'Back', posts_path %> | | |
<%= link_to "Delete", @post, :method => :delete, :confirm => "Apakah anda setuju?" %> | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment