I have following code in my home page to check what environment the app is running in. <%=ENV['RAILS_ENV']%> environment I get nil from ENV['RAILS_ENV']. The above code works fine in windows. Any suggestion on how to get the current environment? My app is deployed with RailsPlayground.com. Thanks.
on 2007-01-03 02:02
on 2007-01-03 02:06
On Jan 3, 2007, at 2:01 AM, Neeraj Kumar wrote: > Any suggestion on how to get the current environment? Use the Ruby constant RAILS_ENV instead, which is not necessarily set in the environment. -- fxn