sample

C++ code posted by gokul
created at 18 Feb 07:16

Edit | Back
1
2
3
4
5
6
7
8
9
<div id= "posts">
  <% @posts.each do |post| %>
  <div class= "post">
  <h2 class="title"> <%= link_to post.title, post %> </h2>
  <p> <%= post.content %> </p> 
  <p class= "date"> Published At : <%= time_ago_in_words(post.created_at) %> ago by <b> <%= post.user.email %> </b> </p> 
  </div>
<% end %>
</div>
310 Bytes in 5 ms with coderay