Skip to content

Commit

Permalink
add snapshot of code at p.52 for #55
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jan 22, 2019
1 parent b8fa8db commit 6a372a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rumbl/lib/rumbl_web/templates/user/index.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<table>
<%= for user <- @users do %>
<tr>
<td><b><%= first_name(user) %></b> (<%= user.id %>)</td>
<td><b><%= render "user.html", user: user %></td>
<td><%= link "View", to: Routes.user_path(@conn, :show, user.id) %></td>
</tr>
<% end %>
Expand Down
3 changes: 1 addition & 2 deletions rumbl/lib/rumbl_web/templates/user/show.html.eex
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<h1>Showing User</h1>
<b><%= first_name(@user) %></b> (<%= @user.id %>)

<%= render "user.html", user: @user %>
1 change: 1 addition & 0 deletions rumbl/lib/rumbl_web/templates/user/user.html.eex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<strong><%= first_name(@user) %></strong> (<%= @user.id %>)

0 comments on commit 6a372a6

Please sign in to comment.