[Rails] How to determine whether dev,test or prod from the code

Greg Donald
Wed, 26 Jul 2006 21:54:06 -0000

On 7/26/06, Don Mc <don.mcclean@gmail.com> wrote:
> When in a controller, how would I determine which
> environment I am currently running in? (Development,Test,Production)

> script/console
Loading development environment.
>> RAILS_ENV
=> "development"


--
Greg Donald