From dab6b6f7230c19f885b5dd7ff8f2d49c9d91944d Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 6 Mar 2022 09:17:06 -0500 Subject: [PATCH] don't show doors if vehicle.doors is nil --- app/views/vehicles/_details.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/vehicles/_details.html.erb b/app/views/vehicles/_details.html.erb index 0657dee..730f4a5 100644 --- a/app/views/vehicles/_details.html.erb +++ b/app/views/vehicles/_details.html.erb @@ -17,7 +17,7 @@ <%= t(:label_trim) %> - <%= vehicle.doors %> <%=t(:label_door)%> <%= vehicle.trim %> + <%= vehicle.doors %> <%=t(:label_door) if vehicle.doors? %> <%= vehicle.trim %>