Skip to content

Commit

Permalink
Tested date format for date_purchased => display correct
Browse files Browse the repository at this point in the history
  • Loading branch information
James Fernandez committed Jul 30, 2017
1 parent 52ba646 commit 425a7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/movies/show.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h2>Movie: "<%= @movie.title %>" </h2>
<ul>
<li>Comment(s): <%= @movie.comment %></li>
<li<%= @movie.date_purchased.strftime("Date Purchased: %m/%d/%Y") %></li>
<li><%= @movie.date_purchased.strftime("Date Purchased: %m/%d/%Y") %></li> <!--Date MO/DY?YEAR-->
<% if current_user != @movie.user %> <!--show only another's username-->
<li>Owned by: <strong><%= @movie.user.username %></strong></li>
<% end %>
Expand Down

0 comments on commit 425a7b5

Please sign in to comment.