Configuring settings for all rails environment

I am aware that in rails you have three environments: production, test and development. In each of the separate file one could specify a set of config that will apply to the environment. I was wondering whether it was possible to have a config that is applicable to a 3 environments, if it is yes, which file would that be.

Answers


That would be config/environment.rb (or config/application.rb in newer versions of Rails). There are other places to put application-wide configuration settings; for more details there is a good Guide on the topic.


Need Your Help

why repeated '(load' does not update definitions?

scheme ironscheme

I have a file open in editor and a scheme running in a console window next to it.

import python module when using mod_python

python web-services mod-python imdb

i have been using imdbpy for some time. I was interested in making a very basic webservice to return json data.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.