Update index.html.erb

This commit is contained in:
2016-04-21 13:29:58 -04:00
parent 07fe12e65b
commit e3c7047999

View File

@@ -16,7 +16,7 @@
<% Vehicle.all.each do |vehicle| %>
<br/>
<div>
<%= vehicle.qbo_customer.name %> <%= vehicle.to_s %> <%= button_to "Edit", vehicle, method: :edit %> <%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %>
<%= vehicle.qbo_customer.name if vehicle.qbo_customer %> <%= vehicle.to_s %> <%= button_to "Edit", vehicle, method: :edit %> <%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %>
</div>
<% end %>