Changed RAILS_ROOT to Rails.root