[Rails] Configuration values

Sean Leach sleach at wiggum.com
Tue Jan 4 23:29:36 GMT 2005


I read this wiki entry:

http://wiki.rubyonrails.com/rails/show/HowtoUseConfigurationFiles

and I think I am more confused now about application config variables.

I want to have values that are different for development and production,
for example

@app_config['path']['upload_path']
@app_config['main']['prefix']

etc. accessible in my controllers, views etc.  What is the common way of
doing this?  i.e. it seems logical I would put this in
config/development.yml etc., and there would be a common way to access
this information.

Thanks,
Sean


More information about the Rails mailing list