I am deploying my app with capistrano/passenger/nginx. The deployment goes well. However, the app dies when I try to load it:
Error message: uninitialized constant Object::Rails
The last line of the backtrace is:
/opt/app/releases/20101208120133/system/config/environment.rb 1 in `'
This corresponds to the following:
require "#{Rails.root}/lib/formats.rb"
However, if I enter rails console on the server, it detects Rails.root just fine. I am running rails 3.0.3 (although it doesnt work for 3.0.0 either).