From aa770bb1f0bdb593628693a9f13c25f3a5b40119 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 22 Apr 2016 07:59:50 -0400 Subject: [PATCH] Update index.html.erb Updated formatting --- app/views/vehicles/index.html.erb | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/app/views/vehicles/index.html.erb b/app/views/vehicles/index.html.erb index 55efa7c..0396988 100644 --- a/app/views/vehicles/index.html.erb +++ b/app/views/vehicles/index.html.erb @@ -1,11 +1,21 @@

Customer Vehicles



-<% Vehicle.all.each do |vehicle| %> -
-
- <%= vehicle.qbo_customer.name if vehicle.qbo_customer %> <%= vehicle.to_s %> <%= button_to "Edit", edit_vehicle_path(vehicle), method: :get%> <%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %> -
+<% Vehicle.all.each do |vehicle| %> +
+
+
+ <%= vehicle.qbo_customer.name if vehicle.qbo_customer %> + <%= vehicle.to_s %> +
+ <%= button_to "Edit", edit_vehicle_path(vehicle), method: :get%> + <%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %> +
+
+
+
<% end %> -<%= button_to "New", new_vehicle_path, method: :get %> +
+ <%= button_to "New", new_vehicle_path, method: :get %> +