Tag Archives: global variables

Global Constants

How can you create application-wide constants in your Rails code? The Rails wiki cites four methods; we prefer adding constants to environment.rb. This method is easy, and allows you to access your constants from anywhere in your application. Continue reading

Posted in Development | Tagged , | Comments Off