| Class | MenuController |
| In: |
app/controllers/menu_controller.rb
|
| Parent: | ApplicationController |
メニューを制御する。
(試験用)
# 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
メニューレイアウトで表示する。
# 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
メニュー履歴を表示する。
# 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