Vincent.Z
2007-May-02 02:18 UTC
is there any better method to externalize some configure info from code?
i wanna get some var or constant out of the code files. pls show your ways.thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Val
2007-May-02 02:45 UTC
Re: is there any better method to externalize some configure info from code?
Check the Configuration Files Loader (http:// revolutiononrails.blogspot.com/2007/03/plugin-release-configuration- files.html) gem/plugin. It allows to put whatever you need into a YAML file under the config/ directory of an application/plugin/gem and then load it sectioned/parsed/ERBd. Val On May 1, 10:18 pm, "Vincent.Z" <zhu1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i wanna get some var or constant out of the code files. > pls show your ways.thanks!--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---