Class: AccountsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/accounts_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



12
13
14
# File 'app/controllers/accounts_controller.rb', line 12

def index
  
end

#switchObject



2
3
4
5
6
7
8
9
10
# File 'app/controllers/accounts_controller.rb', line 2

def switch
   = params[:accounts][:account_uuid]

  user = User.find(:uuid => @current_user.uuid)
  user. = 
  user.save

  redirect_to :root
end