i’m a .net guy doing some work/learning RoR. i have a handful of environment-specific settings i’d like to externalize (s3 access info). what is the way to do this? I realize the place for it is in config/environment/[environment], but i’m asking beyond that. Should it be a global constant? should i use an initializer? how do i cleanly make this data available to the consuming class?
i’m a .net guy doing some work/learning RoR. i have a handful of environment-specific
Share
Putting the environment config in the environment files is considered the best practice. You can define these configs as constants and they will be available everywhere in your application automatically.
Access the
:userkey by callingS3Config[:user].