From 3a0a4d62a1bf5b1212c942a40703adb97d9d17f4 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 23 Aug 2019 14:31:16 +0800 Subject: [PATCH] add hello --- app/views/admin/testings/hello.html.erb | 2 ++ lib/testing/engine.rb | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 app/views/admin/testings/hello.html.erb diff --git a/app/views/admin/testings/hello.html.erb b/app/views/admin/testings/hello.html.erb new file mode 100644 index 0000000..cb1ff21 --- /dev/null +++ b/app/views/admin/testings/hello.html.erb @@ -0,0 +1,2 @@ +

Hello Worlds

+

HOLA

diff --git a/lib/testing/engine.rb b/lib/testing/engine.rb index 37a96c6..f00104d 100644 --- a/lib/testing/engine.rb +++ b/lib/testing/engine.rb @@ -46,6 +46,12 @@ module Testing :active_for_action=>{'admin/testings'=>'tags'}, :active_for_tag => 'Testing', :available_for => 'managers' + context_link 'testing.hello', + :link_path=>"admin_testings_path" , + :priority=>6, + :active_for_action=>{'admin/testings'=>'hello'}, + :active_for_tag => 'Testing', + :available_for => 'managers' end end end