Ruby on Rails - environments in rails in ruby on rails- ruby on rails tutorial - rails guides - rails tutorial - ruby rails
Environments in Rails
- Configuration files for rails can be found in config/environments/. By default rails has 3 environments, development, production and test. By editing each file we are editing the configuration for that environment only.
- Rails also has a configuration file in config/application.rb. This is a common configuration file as any settings defined here are overwritten by the config specified in each environment.
- We add or modify configuration options within the Rails.application.configure do block and configuration options start with config.