Dima Hristov
2007-Jun-10 13:47 UTC
change value of variable from config file and store it back
I''m having a global variable that is placed in development.rb. How can I change the value of that variable from within the code and store it back to the config file? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Dima Hristov
2007-Jun-10 14:20 UTC
Re: change value of variable from config file and store it b
Dima Hristov wrote:> I''m having a global variable that is placed in development.rb. How can I > change the value of that variable from within the code and store it back > to the config file?I''ve been told in the IRC channel that it is not practical to store it in the *.rb file, and that a better approach would be storing it in my custom config file and the code from developemt.rb would load that global variable from the config file. I agree with it. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---