rename time helper to ago

This commit is contained in:
jomo
2014-11-15 21:02:30 +01:00
parent 110bc2a248
commit d2efe44de5
10 changed files with 14 additions and 14 deletions

View File

@@ -10,7 +10,7 @@
<%= link_to blogposts_path, class: ("active" if con == "blogposts" || con == "comments") do %>
News
<% if last_post = Blogpost.last %>
<div class="subtitle"><%= time last_post.created_at %></div>
<div class="subtitle"><%= ago last_post.created_at %></div>
<% end %>
<% end %>
</li>