Setting Paths Dependent on Environment

I need to set a path depending if I am on my development box of production server. How can I set variables that our dependend on environment? :slight_smile:

do you mean something like
my_variable = RAILS_ENV == 'test' ? 'in test mode' : 'not in test mode'

Jens

You can also define a constant in the .rb files in the environment/ directory.

E.g in development.rb:

module EnvironmentSpecific   Variable="Set for Development" end

and in production.rb:

module EnvironmentSpecific   Variable="Set for Production" end

Max