Guest User

Untitled

a guest
May 26th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def index
  2. @accounts = Account.find(:all)
  3. end
  4.  
  5. # GET /accounts/:id
  6. def show
  7. @account = Account.find_by_id(params[:id]) || current_account
  8. respond_to do |f|
  9. f.html
  10. f.xml {render :xml => @account.to_xml(:include => :storehouses)}
  11. end
  12. end
  13.  
  14. # GET /accounts/list_core
  15. def list_core
  16. @accounts = Account.find_all_by_type('Core')
  17. render_action 'index'
  18. end
Add Comment
Please, Sign In to add comment