From 0f61bf54ce65fd5723cf26204f96802b7244386f Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 4 Aug 2016 00:15:33 -0400 Subject: [PATCH] Update index.html.erb --- app/views/vehicles/index.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/vehicles/index.html.erb b/app/views/vehicles/index.html.erb index c413411..25ec9a4 100644 --- a/app/views/vehicles/index.html.erb +++ b/app/views/vehicles/index.html.erb @@ -1,6 +1,10 @@

Customer Vehicles


-<%= 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' %>