From 06fb28048ee976243384bfbf6af83839666d9857 Mon Sep 17 00:00:00 2001 From: noopy0415 Date: Wed, 25 Apr 2018 18:06:51 +0900 Subject: [PATCH] git push --- app/views/products/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/products/show.html.erb b/app/views/products/show.html.erb index fc6f295..a9bda86 100644 --- a/app/views/products/show.html.erb +++ b/app/views/products/show.html.erb @@ -25,7 +25,7 @@ <%= button_to "編集", edit_product_path, method: :get, class: "btn btn-default" %> <% end %> <% else %> - <%= button_to "購入", buy_product_path(@product), disabled: true, class: "btn btn-default" %> + <%= button_to "購入", product_path(@product), disabled: true, class: "btn btn-default" %> <% end %>