Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
don't always display street_address2
Browse files Browse the repository at this point in the history
  • Loading branch information
ghalley committed Aug 24, 2016
1 parent 1a7e2da commit 6989358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<td><%= user.email %></td>
<td>
<%= user.street_address1 %><br/>
<%= user.street_address2 %><br/>
<%= "#{user.street_address2}<br/>".html_safe if user.street_address2.present? %>
<%= user.city %> <%= ", #{user.state}" if user.state.present? %> <%= user.zip_code %>
</td>
<td><%= link_to 'Edit', edit_user_path(user) if current_user.can_update?(user) %></td>
Expand Down

0 comments on commit 6989358

Please sign in to comment.