change from RAILS_ENV to Rails.env