I see both in examples when checking what env one is running in. What\'s preferred? Are they, for all intents and purposes equal?
ENV['RAILS_ENV'] is now deprecated.
ENV['RAILS_ENV']
You should use Rails.env which is clearly much nicer.
Rails.env