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.
On Dec 30, 9:35 am, BlueArchon
<gsampathku...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---