debian-mirror-gitlab/app/controllers/help_controller.rb

19 lines
293 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
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