开发者

Tell, whether we are in debug mode

开发者 https://www.devze.com 2023-02-19 05:09 出处:网络
How to do it ? Maybe there is some environment var 开发者_如何转开发?There are three environments by default: development, test and production.

How to do it ? Maybe there is some environment var 开发者_如何转开发?


There are three environments by default: development, test and production. In rails 3 you can check it using:

Rails.env 

In rails 2 you can check it using:

RAILS_ENV

http://apidock.com/rails/Rails/env/class

0

精彩评论

暂无评论...
验证码 换一张
取 消