Class MenuController
In: app/controllers/menu_controller.rb
Parent: ApplicationController

メニューを制御する。

Methods

about   index   menu_history   menu_tree   mock  

Public Instance methods

(試験用)

[Source]

    # File app/controllers/menu_controller.rb, line 34
34:   def about
35:     flash.now[:notice] = "flash notice of about"
36:     @parent_view = "main"
37:     @current_view = "m"
38:     @sub_view = nil
39:   end

メニューレイアウトで表示する。

[Source]

    # File app/controllers/menu_controller.rb, line 6
 6:   def index
 7:     set_menus
 8:     update_menu_history
 9:     @menu_tree_close_all = true
10:   end

メニュー履歴を表示する。

[Source]

    # File app/controllers/menu_controller.rb, line 21
21:   def menu_history
22:     act = Menu.find(params[:id])
23:     update_menu_history(act)
24:     render :partial => "menu_history"
25:   end

メニューツリーを表示する。

[Source]

    # File app/controllers/menu_controller.rb, line 28
28:   def menu_tree
29:     set_menus
30:     @menu_tree_close_all = false
31:   end

(試験用)

[Source]

    # File app/controllers/menu_controller.rb, line 13
13:   def mock
14:     @menu = Menu.find(params[:id])
15:     @parent_view = "main"
16:     @current_view = "m"
17:     @sub_view = nil
18:   end

[Validate]