18 lines
310 B
Ruby
18 lines
310 B
Ruby
class HelpController < ApplicationController
|
|
def index
|
|
end
|
|
|
|
def api
|
|
@category = params[:category]
|
|
@category = "README" if @category.blank?
|
|
|
|
if File.exists?(Rails.root.join('doc', 'api', @category + '.md'))
|
|
render 'api'
|
|
else
|
|
not_found!
|
|
end
|
|
end
|
|
|
|
def shortcuts
|
|
end
|
|
end
|