Use Rails.root instead of RAILS_ROOT