Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def index
- @accounts = Account.find(:all)
- end
- # GET /accounts/:id
- def show
- @account = Account.find_by_id(params[:id]) || current_account
- respond_to do |f|
- f.html
- f.xml {render :xml => @account.to_xml(:include => :storehouses)}
- end
- end
- # GET /accounts/list_core
- def list_core
- @accounts = Account.find_all_by_type('Core')
- render_action 'index'
- end
Add Comment
Please, Sign In to add comment