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