summaryrefslogtreecommitdiff
path: root/app/controllers/help_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r--app/controllers/help_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index 051cbdfaf05..a4fcd4b29e8 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -13,6 +13,17 @@ class HelpController < ApplicationController
end
end
+ def show
+ @category = params[:category]
+ @file = params[:file]
+
+ if File.exists?(Rails.root.join('doc', @category, @file + '.md'))
+ render 'show'
+ else
+ not_found!
+ end
+ end
+
def shortcuts
end
end