diff --git a/config/locales/en.yml b/config/locales/en.yml index 4db5369..41cdec7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,3 +2,4 @@ en: testing: testing: Test Module order: order + hello: hello! diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 77888f7..b15b7bd 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -2,3 +2,4 @@ zh_tw: testing: testing: 測試模組 order: 排序 + hello: 嗨!! diff --git a/lib/testing/engine.rb b/lib/testing/engine.rb index f00104d..eef0aac 100644 --- a/lib/testing/engine.rb +++ b/lib/testing/engine.rb @@ -49,7 +49,7 @@ module Testing context_link 'testing.hello', :link_path=>"admin_testings_path" , :priority=>6, - :active_for_action=>{'admin/testings'=>'hello'}, + :active_for_action=>{'admin/testings/hello'=>'hello'}, :active_for_tag => 'Testing', :available_for => 'managers' end