2012-01-18 15:15:45 -05:00
|
|
|
class HelpController < ApplicationController
|
|
|
|
def index
|
|
|
|
end
|
2013-06-06 06:19:23 -04:00
|
|
|
|
|
|
|
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
|
2013-06-30 15:10:52 -04:00
|
|
|
|
|
|
|
def shortcuts
|
|
|
|
end
|
2012-01-18 15:15:45 -05:00
|
|
|
end
|