Active Record w/ Stand Alone Script (no longer working?)

I know I’ve had this working several months ago:


  1. #!/usr/bin/env ruby
  2. RAILS_ENV = ‘production’
  3. require File.dirname(FILE) + ‘/…/config/boot’
  4. @u = User.find( :all )

ruby test.rb

test.rb:5: uninitialized constant User (NameError)

(The User model does exist, so that’s not the problem) …but I can no
longer get it to work (I’ve tried it locally and on my dedicated sever
across several projects). Any ideas?