diff --git a/app/views/vehicles/_details.html.erb b/app/views/vehicles/_details.html.erb index d5aaa0a..1df3fb5 100644 --- a/app/views/vehicles/_details.html.erb +++ b/app/views/vehicles/_details.html.erb @@ -8,7 +8,7 @@ <%= t(:field_customer)%> - <%= link_to vehicle.customer.name, customer_path(vehicle.customer) %> + <%= link_to(vehicle.customer.name, customer_path(vehicle.customer)) if vehicle.customer %>