# Class: HelpController

Help Controller Class

# Public Instance Methods

### menu ()

Show source...

        # File bbs/lib/controllers/help.rb, line 58
    58:   def menu
    59:     done = false
    60:     validkeys=['B','C','F','H','M','P','T','U','S', 'X']
    61:     until done == true
    62:       key = Tgio::Input.menuprompt('menu_help.ftl',validkeys, nil) # nil is for tpl vars hash
    63:       test_session
    64:       print "\n"
    65:       case key
    66:         when "A" # About Telegard
    67:           # TODO: Add bbs data?
    68:           Tgtemplate.display('help_about.ftl', nil)
    69:         when "B" # BBS Lists Help
    70:           Tgtemplate.display('help_bbslists.ftl', nil)
    71:         when "C" # Chat Rooms Help
    72:           Tgtemplate.display('help_chat.ftl', nil)
    73:         when "F" # File Areas Help
    74:           Tgtemplate.display('help_fileareas.ftl', nil)
    75:         when "H" # Call History Help
    76:           Tgtemplate.display('help_callhistory.ftl', nil)
    77:         when "M" # Messages Areas Help
    78:           Tgtemplate.display('help_msgareas.ftl', nil)
    79:         when "P" # Page Sysop Help
    80:           Tgtemplate.display('help_pagesysop.ftl', nil)
    81:         when "T" # Timebank Help
    82:           Tgtemplate.display('help_timebank.ftl', nil)
    83:         when "U" # User Menu Help
    84:           Tgtemplate.display('help_useraccount.ftl', nil)
    85:         when "S" # Command Summary
    86:           Tgtemplate.display('help_commands.ftl', nil)
    87:         when "X" # Return to Main
    88:           done = true
    89:       end #/case
    90:       test_session
    91:     end #/until
    92:     return 0
    93:   end