debugging trick in rails
when running your application in staging environment you can face some errors that you haven’t experienced in dev environment.
for instance i was getting internal server error often.
go to your staging.rb
file and make sure this value is set to true.
this will give you better rails-like error output instead of just internal server error.
config.consider_all_requests_local = true