% for column in Article.content_columns %>
<%= column.human_name %>: <%=h @article.send(column.name) %>
<% end %>
<%= link_to _('Edit'), :action => 'edit', :id => @article %> |
<%= link_to _('Back'), :action => 'list' %>
test for distance_of_time_in_words
<% from = Time.mktime(2004, 3, 6, 21, 45, 0) %>
<%= distance_of_time_in_words(from, from + 0.seconds, true) %>
<%= distance_of_time_in_words(from, from + 5.seconds, true) %>
<%= distance_of_time_in_words(from, from + 20.seconds, true) %>
<%= distance_of_time_in_words(from, from + 40.seconds, true) %>
<%= distance_of_time_in_words(from, from + 60.seconds, true) %>
<%= distance_of_time_in_words(from, from + 1.minutes + 30.seconds) %>
<%= distance_of_time_in_words(from, from + 44.minutes + 30.seconds) %>
<%= distance_of_time_in_words(from, from + 89.minutes + 30.seconds) %>
<%= distance_of_time_in_words(from, from + 23.hours + 59.minutes + 30.seconds) %>
<%= distance_of_time_in_words(from, from + 47.hours + 59.minutes + 30.seconds) %>
<%= distance_of_time_in_words(from, from + 29.days + 23.hours + 59.minutes + 30.seconds) %>
<%= distance_of_time_in_words(from, from + 59.days + 23.hours + 59.minutes + 30.seconds) %>
<%= distance_of_time_in_words(from, from + 1.years - 30.seconds) %>
<%= distance_of_time_in_words(from, from + 2.years - 30.seconds) %>
<%= distance_of_time_in_words(from, from + 4.years - 30.seconds) %>