sample

Plain text code posted by gokul
created at 18 Feb 07:16, updated at 13 Mar 21:02

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
a = 2
# sdsadf

<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>
329 Bytes in 2 ms with coderay