summaryrefslogtreecommitdiff
path: root/app/views/tutorials
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2017-09-24 12:56:20 -0600
committermo <mo.khan@gmail.com>2017-09-24 12:56:20 -0600
commita67e0cb103f76df6095257857e5f980340f3c940 (patch)
tree7602d8e3f1c2bb721afaf4d891c1e3800c7166c6 /app/views/tutorials
parent96d66bcdb7bad43c3ec08349d2d978aec307ec90 (diff)
upgrade to rails 5.1
Diffstat (limited to 'app/views/tutorials')
-rw-r--r--app/views/tutorials/index.html.erb2
-rw-r--r--app/views/tutorials/show.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/tutorials/index.html.erb b/app/views/tutorials/index.html.erb
index e31f8cea..978b20fe 100644
--- a/app/views/tutorials/index.html.erb
+++ b/app/views/tutorials/index.html.erb
@@ -6,7 +6,7 @@
<% @tutorials.each do |tutorial| %>
<tr>
<td>
- <h4><%= link_to tutorial.heading, tutorial.url %> <small><%= tutorial.created_at.to_s :foomat %></small></h4>
+ <h4><%= link_to tutorial.heading, tutorial.url %> <small><%= local_time(tutorial.created_at) %></small></h4>
<% tutorial.tags.each do |tag| -%>
<%= link_to tag.name, tutorial_tag_path(tag.name), class: 'badge badge-secondary' %>
<% end -%>
diff --git a/app/views/tutorials/show.html.erb b/app/views/tutorials/show.html.erb
index c4ae624f..e5efad66 100644
--- a/app/views/tutorials/show.html.erb
+++ b/app/views/tutorials/show.html.erb
@@ -6,7 +6,7 @@
</div>
<div class="col">
<h3><%= @tutorial.heading %></h3>
- <small><%= @tutorial.created_at.to_s :foomat %></small>
+ <small><%= local_time(@tutorial.created_at) %></small>
<p>
<% @tutorial.tags.each do |tag| -%>
<%= link_to tutorial_tag_path(tag.name) do %>