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
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!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs