Update _details.html.erb

This commit is contained in:
2016-05-11 08:54:54 -04:00
parent d13609ff4a
commit f04e8e8ab2

View File

@@ -2,44 +2,44 @@
<tbody> <tbody>
<tr> <tr>
<th>Vehicle</th> <th>Vehicle</th>
<td><%= @vehicle.to_s %></td> <td><%= vehicle.to_s %></td>
</tr> </tr>
<tr> <tr>
<th>VIN</th> <th>VIN</th>
<td><%= @vehicle.vin %></td> <td><%= vehicle.vin %></td>
</tr> </tr>
<tr> <tr>
<th>Style</th> <th>Style</th>
<td><%= @vehicle.style %></td> <td><%= vehicle.style %></td>
</tr> </tr>
<tr> <tr>
<th>Drive</th> <th>Drive</th>
<td><%= @vehicle.drive %></td> <td><%= vehicle.drive %></td>
</tr> </tr>
<tr> <tr>
<th>Doors</th> <th>Doors</th>
<td><%= @vehicle.doors %></td> <td><%= vehicle.doors %></td>
</tr> </tr>
<tr> <tr>
<th>Notes</th> <th>Notes</th>
<td><%= @vehicle.notes %></td> <td><%= vehicle.notes %></td>
</tr> </tr>
<tr> <tr>
<th>Issues</th> <th>Issues</th>
<td><%= @vehicle.issues.count %></td> <td><%= vehicle.issues.count %></td>
</tr> </tr>
<tr> <tr>
<td/> <td/>
<td> <td>
<%= button_to "Edit", edit_vehicle_path(@vehicle), method: :get%> <%= button_to "Edit", edit_vehicle_path(vehicle), method: :get%>
<%= button_to "Delete", @vehicle, method: :delete, data: {confirm: "You sure?"} %> <%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %>
</td> </td>
</tr> </tr>
</tbody> </tbody>