Class: Plutus::AccountsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Plutus::AccountsController
- Defined in:
- app/controllers/plutus/accounts_controller.rb
Overview
This controller provides restful route handling for Accounts.
The controller supports ActiveResource, and provides for HMTL, XML, and JSON presentation.
Security:
Only GET requests are supported. You should ensure that your application controller enforces its own authentication and authorization, which this controller will inherit.
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'app/controllers/plutus/accounts_controller.rb', line 20 def index @accounts = Account.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @accounts } format.json { render :json => @accounts } end end |