Update index.html.erb

This commit is contained in:
2016-08-04 00:15:33 -04:00
committed by GitHub
parent 14cb22d743
commit 0f61bf54ce

View File

@@ -1,6 +1,10 @@
<h1>Customer Vehicles</h1> <h1>Customer Vehicles</h1>
<br/> <br/>
<%= button_to "New Vehicle", new_vehicle_path(@customer), method: :get %> <%= form_tag(vehicles_path, :method => "get", id: "search-form") do %>
<%= text_field_tag :search, params[:search], placeholder: "Search Vehicles by VIN" %>
<%= submit_tag "Search" %>
<%= button_to "New Vehicle", new_vehicle_path, method: :get %>
<% end %>
<%= render :partial => 'vehicles/list' %> <%= render :partial => 'vehicles/list' %>