summaryrefslogtreecommitdiff
path: root/app/views
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
parent96d66bcdb7bad43c3ec08349d2d978aec307ec90 (diff)
upgrade to rails 5.1
Diffstat (limited to 'app/views')
-rw-r--r--app/views/profiles/show.html.erb2
-rw-r--r--app/views/tutorial_tags/show.html.erb2
-rw-r--r--app/views/tutorials/index.html.erb2
-rw-r--r--app/views/tutorials/show.html.erb2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb
index c81a33cb..328ebe6b 100644
--- a/app/views/profiles/show.html.erb
+++ b/app/views/profiles/show.html.erb
@@ -5,7 +5,7 @@
<%= avatar_for(@user, clazz: 'img-thumbnail') %>
</div>
<div class="col-9">
- <h1><%= @user.name %> <small>A member since <%= @user.created_at.to_s :foomat %>, with <%= @user.creations.length %> creations.</small> </h1>
+ <h1><%= @user.name %> <small>A member since <%= local_time(@user.created_at) %>, with <%= @user.creations.length %> creations.</small> </h1>
<h5><%= @user.city %></h5>
<hr>
<% if @user.website.present? %>
diff --git a/app/views/tutorial_tags/show.html.erb b/app/views/tutorial_tags/show.html.erb
index 3420b184..0f6dfea2 100644
--- a/app/views/tutorial_tags/show.html.erb
+++ b/app/views/tutorial_tags/show.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 tutorial_tag_path(tag.name) do %>
<span class="badge badge-light"><%= tag.name %></span>
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 %>