From c4749f4c8dcdc2c2a22a891563b5cf9789a41b5e Mon Sep 17 00:00:00 2001 From: prithviraj sukale Date: Sun, 14 May 2017 13:54:03 +0530 Subject: [PATCH] modified route helper to solve 404. --- app/views/protips/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/protips/show.html.haml b/app/views/protips/show.html.haml index a2923f1..115dcd1 100644 --- a/app/views/protips/show.html.haml +++ b/app/views/protips/show.html.haml @@ -36,7 +36,7 @@ = button_to protip_mark_spam_path(@protip), title: 'Mark as spam', data: { confirm: "Mark as spam?" }, form_class: "diminish inline plain" do = icon('meh-o') - = button_to seo_protip_path(@protip), method: :delete, data: { confirm: "This makes us very sad. Are you sure?" }, form_class: "diminish inline plain" do + = button_to protip_path(@protip), method: :delete, data: { confirm: "This makes us very sad. Are you sure?" }, form_class: "diminish inline plain" do = icon('trash') %a.ml1.btn.rounded.bg-green.white{href: edit_protip_path(@protip)}