Class: StatusPage::StatusController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/status_page/status_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/status_page/status_controller.rb', line 5

def index
  @statuses = statuses

  respond_to do |format|
    format.html
    format.json {
      render json: statuses
    }
    format.xml {
      render xml: statuses
    }
  end
end