From 53031c1831fd900f36ba5b32e70174cc6cf2f3a2 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 26 Nov 2014 17:08:40 +0800 Subject: [PATCH] edit url changed and delete url added --- app/controllers/desktop/journal_papers_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/desktop/journal_papers_controller.rb b/app/controllers/desktop/journal_papers_controller.rb index 54abccd..cd63312 100644 --- a/app/controllers/desktop/journal_papers_controller.rb +++ b/app/controllers/desktop/journal_papers_controller.rb @@ -35,7 +35,8 @@ class Desktop::JournalPapersController < DesktopAdminController { "id" => j.id.to_s, - "edit_url" => "/#{I18n.locale.to_s}/admin/jounal_papers/#{j.to_param}/edit", + "edit_url" => "/#{I18n.locale.to_s}/admin/journal_papers/#{j.to_param}/edit", + "delete_url" => "/#{I18n.locale.to_s}/admin/journal_papers/#{j.id.to_s}", "paper_title" => j.paper_title, "journal_title" => j.journal_title, "keywords" => j.keywords,