Francois GORET
7/12/2006 4:47:00 AM
Blazer wrote:
> Is there a way to determine (global variable) to determine whether I'm
> running rails in development or production within an application?
>
> Thanks in advance ...
>
> DC - Any day above ground is a good day!
Can check ENV['RAILS_ENV'] which contains either 'development', 'test',
'production'.
Francois