Class: Main

Inherits:
AppController show all
Defined in:
app/controllers/main.rb

Overview

Handles the home page and various others.

Instance Attribute Summary

Attributes inherited from Corrupt::Controller::Base

#headers

Instance Method Summary collapse

Methods inherited from Corrupt::Controller::Base

#content, #content=, #return_response, #template

Instance Method Details

#indexObject

GET /



5
6
7
8
9
10
11
# File 'app/controllers/main.rb', line 5

def index
  template('main/index.haml')
  return_response do |content|
    # This sets 'title' in the template.
    content.title = 'Main Index'
  end
end