How to read config on rails?

How to set and read config settings on rails?
For example: a path to be get by a variable.