Class: Main
- Inherits:
-
AppController
- Object
- Corrupt::Controller::Base
- AppController
- Main
- Defined in:
- app/controllers/main.rb
Overview
Handles the home page and various others.
Instance Attribute Summary
Attributes inherited from Corrupt::Controller::Base
Instance Method Summary collapse
-
#index ⇒ Object
GET /.
Methods inherited from Corrupt::Controller::Base
#content, #content=, #return_response, #template
Instance Method Details
#index ⇒ Object
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 |