Update _list.html.erb

This commit is contained in:
2016-08-01 20:29:58 -04:00
committed by GitHub
parent 0c5c778c75
commit 7fb91ae10b

View File

@@ -1,9 +1,9 @@
<% if @vehicles.present? %> <% if @vehicles.present? %>
<% @vehicles.each do |vehicle| %> <% @vehicles.each do |vehicle| %>
<div class="row"> <div class="row">
<div> <div>
<%= button_to "##{vehicle.id}, vehicle_path(vehicle) %> <%= button_to "##{vehicle.id}", vehicle_path(vehicle) %>
</div> </div>
<div> <div>
<%= vehicle.to_s %> <%= vehicle.to_s %>
@@ -13,14 +13,13 @@
<%= vehicle.vin %> <%= vehicle.vin %>
</div> </div>
</div> </div>
<% end %> <% end %>
<br/> <br/>
<div class="actions"> <div class="actions">
<%= will_paginate @vehicles %> <%= will_paginate @vehicles %>
<%= button_to "New Vehicle", new_vehicle_path, method: :get %> </div>
</div>
<% else %> <% else %>
<p>There are no vehicles containing the term(s) <%= params[:search] %>.</p> <p>There are no vehicles containing the term(s) <%= params[:search] %>.</p>