# Setting custom variables per environment

**URL:** <https://www.ruby-forum.com/t/setting-custom-variables-per-environment/196466>\
**Category:** Rails\
**Created:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/setting-custom-variables-per-environment/196466 "2007-09-17T13:25:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggie5](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7c8e57/32.png) [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Post date:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/setting-custom-variables-per-environment/196466/1 "2007-09-17T13:25:15Z")

</div>

Hi,

I’d like to be able to set a variable for each environment I have.  
It’s a path to a folder that’s different on each system: development  
and production. I then, need to be able to read it from my controller.

How can I do this?
