Class: Gaku::GakuController

Inherits:
CoreController
  • Object
show all
Defined in:
app/controllers/gaku/gaku_controller.rb

Instance Method Summary collapse

Instance Method Details

#resolve_layoutObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/gaku/gaku_controller.rb', line 11

def resolve_layout
  case action_name
  when 'index'
    'gaku/layouts/index'
  when 'show'
    'gaku/layouts/show'
  when 'edit'
    'gaku/layouts/edit'
  else
    'gaku/layouts/gaku'
  end
end