From 0c5c778c75c73b2d1188fa5c8bd24a66f6c7c640 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 1 Aug 2016 20:28:18 -0400 Subject: [PATCH] Update _list.html.erb --- app/views/vehicles/_list.html.erb | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/app/views/vehicles/_list.html.erb b/app/views/vehicles/_list.html.erb index 10089c2..d14a8ff 100644 --- a/app/views/vehicles/_list.html.erb +++ b/app/views/vehicles/_list.html.erb @@ -2,18 +2,15 @@ <% @vehicles.each do |vehicle| %>
-
-
- <%= vehicle.to_s %> -
- <%= vehicle.customer %> -
- <%= vehicle.vin %> -
-
- <%= button_to "More", vehicle_path(vehicle), method: :get %> -
-
+
+ <%= button_to "##{vehicle.id}, vehicle_path(vehicle) %> +
+
+ <%= vehicle.to_s %> +
+ <%= vehicle.customer %> +
+ <%= vehicle.vin %>
<% end %>