Exception | Date | |
---|---|---|
<%= link_to_remote "#{exc.exception_class} in #{exc.controller_action}", :url => { :action => 'show', :id => exc } %>
|
<% if Date.today == exc.created_at.to_date if exc.created_at > Time.now - 4.hours %> <%= time_ago_in_words(exc.created_at).gsub(/about /,"~ ") %> ago <% else %> Today, <%= exc.created_at.strftime("%l:%M %p") %> <% end %> <% else %> <%= exc.created_at.strftime("%b %d, %Y") %> <% end %> | <%= link_to_remote 'Delete', {:url => { :action => 'destroy', :id => exc }} , :class => "util" %> |