Class: UzuUzu::Controller::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/uzuuzu-core/controller/index.rb

Instance Method Summary collapse

Instance Method Details

#error(code) ⇒ Object



11
12
13
# File 'lib/uzuuzu-core/controller/index.rb', line 11

def error(code)
  response.respond(helper.render_file(__DIR__("view/index/error/#{code}.rhtml")))
end

#indexObject



7
8
9
# File 'lib/uzuuzu-core/controller/index.rb', line 7

def index
  
end

#logoutObject



15
16
17
18
# File 'lib/uzuuzu-core/controller/index.rb', line 15

def logout
  session.clear
  response.redirect '/'
end