changed RAILS_ENV to Rails.env