summaryrefslogtreecommitdiff
path: root/app/controllers/help_controller.rb
blob: c4d620d87b15d2e84bdd1128976d4d2205c1f612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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

  def ui
  end
end