From 1e6850760e32a434d74f50085d7d4bf602b4f6c2 Mon Sep 17 00:00:00 2001 From: Enrico Stano Date: Tue, 21 Aug 2018 12:24:13 +0200 Subject: [PATCH] Infer edit_path from Post type --- app/views/shared/_post_actions.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_post_actions.html.erb b/app/views/shared/_post_actions.html.erb index eb8a2df0f..a1519dddc 100644 --- a/app/views/shared/_post_actions.html.erb +++ b/app/views/shared/_post_actions.html.erb @@ -1,4 +1,4 @@ -<%= link_to post, class: "btn btn-warning" do %> +<%= link_to [:edit, post], class: "btn btn-warning" do %> <%= glyph :pencil %> <%= t "global.edit" %> <% end %>