Mike
2006-Jun-24 04:47 UTC
[Rails] Active Record w/ Stand Alone Script (no longer working?)
I know I''ve had this working several months ago: http://wiki.rubyonrails.com/rails/pages/HowToUseActiveRecordThroughStandAloneScript IE: 1. #!/usr/bin/env ruby 2. RAILS_ENV = ''production'' 3. 4. require File.dirname(__FILE__) + ''/../config/boot'' 5. 6. @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? -- Posted via http://www.ruby-forum.com/.