rake errors

Folks,

I have a rake task that runs via cron and calls a controller action. I
was getting the 'config/boot.rb:28:Warning: require_gem is obsolete'
warning, so I ran rake update:rails. Now I'm getting a whole bunch of
errors and the rake task bombs. The traceback on the errors doesn't
seem to make much sense to me. Help?

rake task...
require 'action_controller/integration'
namespace :actions do
  desc "update facebook profiles"
  task(:update_profiles => :environment) do
    app = ActionController::Integration::Session.new;
    app.get('/facebook/update_profiles')
    puts app.html_document.root.to_s
  end
end

controller action....
  def update_profiles
    @users=FacebookUser.find(:all)
    @articles = Article.find(:all, :conditions=>"created_at<now() and

0 and section_id!=13",:limit=>5, :order=>'created_at DESC' )

    fbsession.activate_with_previous_session('xxx')
    for user in @users
      profile_box = render_to_string(:template => 'facebook/index')
      fbsession.profile_setFBML({:markup => profile_box, :uid =>
user.uid})
    end
  end

RAILS_ENV=production /usr/bin/rake actions:update_profiles --trace
(in /rails/chitown)
rake aborted!
undefined method `camelize' for "top":String
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
assertions/selector_assertions.rb:525
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
assertions/selector_assertions.rb:524:in `each'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
assertions/selector_assertions.rb:524
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
assertions.rb:69
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
test_process.rb:1
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
integration.rb:4
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/rails/chitown/config/../lib/tasks/facebook.rake:1
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/rails.rb:7:in `load'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/rails.rb:7
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/rails.rb:7:in `each'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/rails.rb:7
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/rails/chitown/Rakefile:10
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1940:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1940:in
`raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1727:in
`load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1726:in
`load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1710:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/bin/rake:16:in `load'
/usr/bin/rake:16