Hello guys, I'm having a problem with running an application in production. The error I'm getting is as follows:
/home/www/bandera/releases/20090607191259/vendor/rails/activerecord/ lib/active_record/base.rb:1964:in `method_missing': undefined method `has_attachment' for #<Class:0xb72b6cb0> (NoMethodError) from /home/www/bandera/releases/20090607191259/app/models/document.rb: 8 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `require' from /home/www/bandera/releases/20090607191259/vendor/rails/ activesupport/lib/active_support/dependencies.rb:158:in `require' from /home/www/bandera/releases/20090607191259/vendor/rails/ activesupport/lib/active_support/dependencies.rb:265:in `require_or_load' from /home/www/bandera/releases/20090607191259/vendor/rails/ activesupport/lib/active_support/dependencies.rb:224:in `depend_on' from /home/www/bandera/releases/20090607191259/vendor/rails/ activesupport/lib/active_support/dependencies.rb:136:in `require_dependency' from ./script/../config/../vendor/rails/railties/lib/initializer.rb: 393:in `load_application_classes' ... 13 levels... from /home/www/bandera/releases/20090607191259/vendor/rails/railties/ lib/commands/server.rb:84 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `require' from ./script/server:3 This error occurs when I run './script/server -e production'. If I run './script/server' immediately afterwards, the site runs fine without issue. I can't see for the life of me what could be causing this problem and would appreciate any help! Regards, Alastair --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---