Sha256: 8061ae349aeef41d6adbde2637b4880d1b14a999389d11e599fdf649cb2f4aff
Contents?: true
Size: 825 Bytes
Versions: 7
Compression:
Stored size: 825 Bytes
Contents
module Borutus # 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. # # @author Michael Bulat class AccountsController < ::Borutus::ApplicationController unloadable # @example # GET /accounts # GET /accounts.xml # GET /accounts.json 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 end end
Version data entries
7 entries across 7 versions & 1 rubygems