Update _list.html.erb

This commit is contained in:
2016-08-01 19:28:22 -04:00
committed by GitHub
parent 756e60b865
commit 86e084574e

View File

@@ -1,3 +1,5 @@
<% if @vehicles.present? %>
<% @vehicles.each do |vehicle| %>
<div class="row">
<div class="span6 columns">
@@ -22,3 +24,7 @@
<%= will_paginate @vehicles %>
<%= button_to "New Vehicle", new_vehicle_path, method: :get %>
</div>
<% else %>
<p>There are no vehicles containing the term(s) <%= params[:search] %>.</p>
<% end %>