gitlab-org--gitlab-foss/app/controllers/help_controller.rb
Dmitriy Zaporozhets 6a7990c007
Remove garbage and apply wiki style
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-14 15:51:07 +03:00

18 lines
293 B
Ruby

class HelpController < ApplicationController
def index
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