From 16938c343d1081643ba865605fc2299a05ff333d Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 23 Aug 2019 14:40:10 +0800 Subject: [PATCH] 1223 --- config/routes.rb | 1 + lib/testing/engine.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 252e360..66d48f7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,7 @@ Rails.application.routes.draw do scope "(:locale)", locale: Regexp.new(locales.join("|")) do namespace :admin do get "/testings/order" => "testings#order" + get "/testings/hello" => "testings#hello" post "/testings/updateorder" => "testings#updateorder" resources :testings end diff --git a/lib/testing/engine.rb b/lib/testing/engine.rb index eef0aac..a7d801f 100644 --- a/lib/testing/engine.rb +++ b/lib/testing/engine.rb @@ -47,9 +47,9 @@ module Testing :active_for_tag => 'Testing', :available_for => 'managers' context_link 'testing.hello', - :link_path=>"admin_testings_path" , + :link_path=>"admin_testings_hello_path" , :priority=>6, - :active_for_action=>{'admin/testings/hello'=>'hello'}, + :active_for_action=>{'admin/testings'=>'hello'}, :active_for_tag => 'Testing', :available_for => 'managers' end