Organize application constants in header files

Hi,
Is there a way in RoR to add common string and integer constants
to a central location (like a C++ header file) that can then be
included in your application code as needed. Looked around for a bit
but didn’t really find a satisfactory answer. Apologize for the
newbess of the question:)

–Gautam

I tend to put these into the config/environment.rb. You can probably
put them into a module and include this in the environment.rb or
application.rb also if you want to keep things cleaner.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs