From 0e9b5fa17a05f671cd5fd567389f0b0dca0d92cf Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 4 Aug 2016 09:44:09 -0400 Subject: [PATCH] Update show.html.erb --- app/views/customers/show.html.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/customers/show.html.erb b/app/views/customers/show.html.erb index f8294a7..ed39199 100644 --- a/app/views/customers/show.html.erb +++ b/app/views/customers/show.html.erb @@ -4,10 +4,7 @@
<%= render :partial => 'vehicles/list' %>
-<%= form_tag(new_vehicle_path, :method => "get", id: "new") do %> -<%= hidden_field :customer, @customer.id if @customer %> -<%= submit_tag "New Vehicle" %> -<% end %> +<%= button_to "New Customer", [:new, @cutomer, Vehicle.new], method: :get %>

<%= render :partial => 'issues/list_simple', locals: {issues: @issues} %>