In case you ever need to run a controller’s action from a shell, here’s one way to do it:

require 'action_controller/test_process'
require 'application'
require 'account_controller'
request = ActionController::TestRequest.new
response = ActionController::TestResponse.new
request.env['REQUEST_METHOD'] = 'GET'
request.action = "update"
AccountController.process(request,response)