Forum: Ruby on Rails Detecting the current environement

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Douglas L. (Guest)
on 2005-12-30 00:31
(Received via mailing list)
Hi all,

I'd like to run a before_filter only in the developpment environment.
how do I detect the current enviroment?

Lou V. (Guest)
on 2005-12-30 01:41
(Received via mailing list)
you might try,


or just

This topic is locked and can not be replied to.