How to determine if I am in development environment at runtime?

Hi!

I have something in my application which should be shown only if I am
in development environment.

Is there a command or a global variable to determine the current
environment of the application?

Greetings from Germany,
Klaus

On 13 March 2010 10:01, kb [email protected] wrote:

Hi!

I have something in my application which should be shown only if I am
in development environment.

Is there a command or a global variable to determine the current
environment of the application?

You can use
if Rails.env.development?

Colin

Thank you!