Skip to content

Commit

Permalink
31_rails_a1
Browse files Browse the repository at this point in the history
  • Loading branch information
brockcp committed Oct 31, 2017
1 parent 2bd58ec commit cc06e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
</div>

<% if user_has_no_posts? %>
<h2><%= @user.name %> has not submitted any posts yet.</h2>
<h3><%= @user.name %> has not submitted any posts yet.</h3>
<% else %>
<h2>Posts</h2>
<%= render @user.posts %>
<% end %>
<% if user_has_no_comments? %>
<h2><%= @user.name %> has not submitted any comments yet.</h2>
<h3><%= @user.name %> has not submitted any comments yet.</h3>
<% else %>
<h2>Comments</h2>
<%= render @user.comments %>
Expand Down

0 comments on commit cc06e31

Please sign in to comment.