diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index fde5ef637..18dfbc6c2 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -17,7 +17,9 @@ <% end %> <% if policy(IpAddress).show? %> <% t.column "IP" do |user| %> - <%= link_to user.last_ip_addr, ip_address_path(user.last_ip_addr) %> + <% if user.last_ip_addr.present? %> + <%= link_to user.last_ip_addr, ip_address_path(user.last_ip_addr) %> + <% end %> <% end %> <% end %> <% t.column "Posts" do |user| %>