I'm trying to get the current environment I'm working on with rails using ENV['RAILS_ENV'] but it returns nil. Does anyone know why? I get an environment when I run the Rails.env script but I need to use ENV['RAILS_ENV'] in my environment.rb file. Thanks.
问问题
828 次