This commit is contained in:
chiu 2019-08-23 14:40:10 +08:00
parent 4967fbc87d
commit 16938c343d
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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